/* ===== AUTH PAGE STYLES ===== */

.auth-shell {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bsm-navy) 0%, #2A4099 50%, var(--bsm-gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Split layout: image left, form right on md+ screens */
.auth-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 460px;
}

@media (min-width: 768px) {
  .auth-layout {
    flex-direction: row;
    max-width: 960px;
    min-height: 600px;
    background: var(--bsm-white);
    border-radius: 24px;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.2);
    overflow: hidden;
  }

  .auth-image-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bsm-navy) 0%, #2A4099 100%);
  }

  .auth-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .auth-form-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
  }

  .auth-form-panel .auth-card {
    max-width: 400px;
    box-shadow: none;
  }
}

.auth-card {
  background: var(--bsm-white);
  max-width: 460px;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.2);
}

.auth-card .form-control:focus {
  border-color: var(--bsm-navy);
  box-shadow: 0 0 0 0.2rem rgba(26, 46, 111, 0.25);
}

.auth-subview {
  animation: viewFadeIn 0.3s ease-out;
}

[dir="rtl"] .auth-card #lang-toggle {
  left: auto;
  right: 1rem;
}

/* Keep lang toggle compact - prevent full-width stretch in RTL */
.auth-card #lang-toggle {
  width: auto;
  min-width: 3rem;
  max-width: 4rem;
  flex-shrink: 0;
  display: inline-flex;
  justify-content: center;
}

/* RTL: Password input-group - put reveal icon on the right (logical start) */
[dir="rtl"] .input-group.password-input-group {
  flex-direction: row-reverse;
}

/* RTL on md+: swap image and form order */
@media (min-width: 768px) {
  [dir="rtl"] .auth-layout {
    flex-direction: row-reverse;
  }
}
