/* ============================================================
   GlobalTrust Bank — Auth Pages (Login / Register)
   ============================================================ */

.auth-body {
  background: var(--off-white);
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ---- Image Panel ---- */
.auth-panel--image {
  position: relative;
  overflow: hidden;
}

.auth-panel__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.auth-panel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10,22,40,0.85) 0%, rgba(15,32,68,0.75) 100%);
}

.auth-panel__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.auth-logo__mark {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}

.auth-logo__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--white);
  line-height: 1.2;
}

.auth-logo__text span {
  display: block;
  font-size: 0.6rem;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.auth-quote {
  max-width: 360px;
}

.auth-quote p {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
}

.auth-trust-badges {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.auth-trust-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.375rem 0.75rem;
  border-radius: 100px;
}

/* ---- Form Panel ---- */
.auth-panel--form {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.auth-form-wrap {
  flex: 1;
  padding: 3rem 3rem 2rem;
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form-header {
  margin-bottom: 2rem;
}

.auth-form-header h1 {
  font-size: 1.875rem;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.auth-form-header p {
  font-size: 0.9375rem;
  color: var(--gray-500);
}

/* Password toggle */
.input-password-wrap {
  position: relative;
}

.input-password-wrap .form-input {
  padding-right: 3rem;
}

.input-password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
  cursor: pointer;
}

.input-password-toggle:hover { color: var(--navy); }

/* Forgot password inline */
.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-forgot {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--transition);
}

.auth-forgot:hover { text-decoration-color: var(--navy); }

/* Checkbox */
.form-group--check {
  margin-bottom: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--gray-700);
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--gray-300);
  border-radius: 4px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.checkbox-label input:checked + .checkbox-custom {
  background: var(--navy);
  border-color: var(--navy);
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translateY(-1px);
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.auth-divider span {
  font-size: 0.8125rem;
  color: var(--gray-400);
  white-space: nowrap;
}

/* Switch */
.auth-switch {
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 1.5rem;
}

.auth-switch a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Footer */
.auth-footer {
  padding: 1.25rem 3rem;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.auth-footer p {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.auth-footer-links {
  display: flex;
  gap: 1rem;
}

.auth-footer-links a {
  font-size: 0.75rem;
  color: var(--gray-400);
  transition: color var(--transition);
}

.auth-footer-links a:hover { color: var(--navy); }

/* ---- Register Step Indicator ---- */
.auth-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
}

.auth-step {
  display: flex;
  align-items: center;
  flex: 1;
}

.auth-step__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-400);
  flex-shrink: 0;
  background: var(--white);
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}

.auth-step.is-active .auth-step__dot {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.auth-step.is-done .auth-step__dot {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.auth-step__label {
  font-size: 0.7rem;
  color: var(--gray-400);
  white-space: nowrap;
  margin-left: 0.375rem;
}

.auth-step.is-active .auth-step__label { color: var(--navy); font-weight: 500; }
.auth-step.is-done .auth-step__label  { color: var(--green); }

.auth-step__line {
  flex: 1;
  height: 1px;
  background: var(--gray-200);
  margin: 0 0.5rem;
}

.auth-step.is-done .auth-step__line { background: var(--green); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-panel--image {
    display: none;
  }

  .auth-form-wrap {
    padding: 2rem 1.5rem 1.5rem;
    justify-content: flex-start;
    margin-top: 2rem;
  }

  .auth-footer {
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .auth-form-wrap {
    padding: 1.5rem 1rem;
  }
}
