/* Login form — used inside Modal (desktop) or BottomDrawer (mobile) */
.login-form {
  padding: 1.75rem 1.75rem 1.75rem;
}

.modal-box .login-form { padding-top: 2.75rem; }
.modal-box .lf-close-row { display: none; }

.lf-close-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.375rem;
}
.lf-close-btn {
  background: none; border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.5rem;
  transition: color 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.lf-close-btn svg { width: 1.25rem; height: 1.25rem; }
.lf-close-btn:hover { color: var(--text-primary); }

.login-header {
  text-align: center;
  margin-bottom: 1.375rem;
}
.login-title {
  font-size: 1.25rem; font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}
.login-sub {
  font-size: 0.7812rem;
  color: var(--text-muted);
}

.login-body {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.lf-field {
  display: flex;
  flex-direction: column;
  gap: 0.3125rem;
}
.lf-label {
  font-size: 0.7188rem; font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.0188rem;
}

.lf-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.lf-input-icon {
  position: absolute;
  left: 0.6875rem;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  transition: color 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}
.lf-input-icon iconify-icon { font-size: 0.9375rem; }

.lf-input {
  width: 100%;
  padding: 0.6875rem 0.75rem 0.6875rem 2.375rem;
  background: var(--bg-tertiary, rgba(255,255,255,0.04));
  border: 0.0938rem solid var(--border);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 0.8438rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1), background 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.lf-input::placeholder { color: var(--text-muted); }
.lf-input-wrap:focus-within .lf-input-icon { color: var(--gold-text); }
.lf-input:focus { background: var(--bg-secondary); }
.lf-input.is-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 0.1875rem rgba(239,68,68,0.09);
}

.lf-input--password { padding-right: 2.625rem; }

.lf-eye-btn {
  position: absolute;
  right: 0.5625rem;
  background: none; border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.5rem;
  transition: color 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.lf-eye-btn svg { width: 0.9375rem; height: 0.9375rem; }
.lf-eye-btn:hover,
.lf-eye-btn.is-visible { color: var(--gold-text); }

.lf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.lf-check-label {
  display: flex; align-items: center; gap: 0.4375rem;
  cursor: pointer;
  user-select: none;
}
.lf-checkbox {
  position: absolute;
  opacity: 0; width: 0; height: 0;
  pointer-events: none;
}
.lf-check-box {
  width: 0.9375rem; height: 0.9375rem;
  border-radius: 0.1875rem;
  border: 0.0938rem solid var(--border);
  background: var(--bg-tertiary, rgba(255,255,255,0.04));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.22s cubic-bezier(0.4, 0, 0.2, 1), background 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.lf-checkbox:checked ~ .lf-check-box {
  background: var(--gold);
  border-color: var(--gold);
}
.lf-checkbox:checked ~ .lf-check-box::after {
  content: '';
  display: block;
  width: 0.5rem; height: 0.25rem;
  border-left: 0.1125rem solid var(--text-on-gold);
  border-bottom: 0.1125rem solid var(--text-on-gold);
  transform: rotate(-45deg) translate(0, -0.0625rem);
}
.lf-check-text {
  font-size: 0.7812rem;
  color: var(--text-secondary);
}

.lf-link {
  background: none; border: none;
  font-size: 0.7812rem;
  color: var(--gold-text);
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  line-height: inherit;
}
.lf-link:hover { opacity: 0.75; text-decoration: underline; }
.lf-link--inline { font-size: inherit; font-weight: 600; }

.lf-error {
  font-size: 0.7812rem;
  color: #ef4444;
  padding: 0.5625rem 0.75rem;
  background: rgba(239,68,68,0.07);
  border: 0.0625rem solid rgba(239,68,68,0.18);
  border-radius: 0.5rem;
  display: none;
  line-height: 1.5;
}
.lf-error.is-visible { display: block; }

.lf-submit {
  width: 100%;
  padding: 0.8125rem 1.25rem;
  border-radius: 0.5rem;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  font-size: 0.875rem; font-weight: 700;
  letter-spacing: 0.025rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 0.25rem 1rem rgba(212,170,56,0.28);
  transition: box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0.125rem;
}
.lf-submit:hover:not(:disabled) {
  box-shadow: 0 0.375rem 1.5rem rgba(212,170,56,0.42);
  transform: translateY(-0.0625rem);
}
.lf-submit:active:not(:disabled) { transform: scale(0.98); box-shadow: none; }
.lf-submit:disabled { opacity: 0.65; cursor: not-allowed; }
.lf-submit.is-loading { opacity: 0.75; }

.lf-register-row {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

/* Kill the browser autofill blue/yellow — mask bg with an inset shadow, set text via -webkit-text-fill-color */
.lf-input:-webkit-autofill,
.lf-input:-webkit-autofill:hover,
.lf-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-primary);
  -webkit-box-shadow: 0 0 0 6.25rem var(--bg-secondary) inset;
  caret-color: var(--text-primary);
  transition: background-color 9999s ease-out 0s;
}

[data-theme="light"] .lf-input {
  background: #fff;
  border-color: #d4d8dd;
  color: #111827;
}
[data-theme="light"] .lf-input:-webkit-autofill,
[data-theme="light"] .lf-input:-webkit-autofill:hover,
[data-theme="light"] .lf-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #111827;
  -webkit-box-shadow: 0 0 0 6.25rem #fff inset;
}
[data-theme="light"] .lf-input::placeholder { color: #9ca3af; }
[data-theme="light"] .lf-input:focus { background: #fff; }
[data-theme="light"] .lf-input.is-error {
  border-color: #dc2626;
  box-shadow: 0 0 0 0.1875rem rgba(220,38,38,0.09);
}
[data-theme="light"] .lf-check-box {
  background: #fff;
  border-color: #d4d8dd;
}
[data-theme="light"] .lf-error {
  color: #dc2626;
  background: rgba(220,38,38,0.05);
  border-color: rgba(220,38,38,0.20);
}

/* "(Tap to Open)" hint on collapsible guides (deposit, withdrawal, credit transfer, slot notes) */
.guide-hint {
  color: var(--text-label);
  font-weight: 500;
}
details[open] > summary .guide-hint { display: none; }

/* core/details-animate.js — while a guide slides shut it's still [open], so turn
   the caret back and bring the hint back as soon as closing starts. */
details.is-closing > summary .guide-hint { display: inline; }
details.is-closing > summary [class*="caret"] { transform: none !important; }

/* Content fades in as the guide opens and out as it closes. */
details.is-opening > :not(summary) { animation: details-content-in 0.32s ease both; }
details.is-closing > :not(summary) {
  opacity: 0;
  transition: opacity 0.2s ease;
}

@keyframes details-content-in {
  from { opacity: 0; transform: translateY(-0.25rem); }
  to   { opacity: 1; transform: none; }
}
