/* ==========================================================================
   FCAI Services - Auth pages stylesheet (login)
   Two-column split: identity panel + parchment form panel
   ========================================================================== */

.auth-shell {
  display: flex;
  min-height: 100vh;
}

.auth-identity {
  width: 42%;
  flex-shrink: 0;
  background: radial-gradient(circle at 30% 20%, #3A3A7A 0%, #1A1A40 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 40px;
}

.auth-identity img.crest {
  width: 136px;
  height: 136px;
  filter: drop-shadow(0 2px 20px rgba(0, 0, 0, 0.5));
  margin-bottom: 28px;
}

.auth-university {
  font-family: 'EB Garamond', 'Amiri', 'Traditional Arabic', serif;
  font-size: 1.7rem;
  font-weight: 500;
  margin: 0 0 12px 0;
}

.auth-divider {
  width: 48px;
  height: 2px;
  background: var(--cu-sky, #9FDCEF);
  margin: 12px 0;
  border: none;
}

.auth-faculty {
  font-family: 'EB Garamond', 'Amiri', 'Traditional Arabic', serif;
  font-size: 1.05rem;
  margin: 0 0 6px 0;
}

.auth-faculty-caps {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.75);
}

.auth-form-panel {
  flex: 1;
  background: var(--cu-parchment, #EFEACC);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-form-inner {
  width: 100%;
  max-width: 360px;
}

.auth-form-inner .eyebrow {
  color: var(--cu-navy, #313168);
}

.auth-form-inner h1 {
  font-family: 'EB Garamond', 'Amiri', 'Traditional Arabic', serif;
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--cu-navy, #313168);
  margin: 6px 0 20px 0;
}

.auth-rule {
  border: none;
  border-top: 1.5px solid rgba(49, 49, 104, 0.28);
  margin: 0 0 24px 0;
}

.auth-form-inner .form-group { margin-bottom: 20px; }

.auth-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cu-navy, #313168);
  margin-bottom: 8px;
}

.auth-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(49, 49, 104, 0.28);
  border-radius: 0;
  padding: 7px 0;
  font-size: 15px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text, #111827);
  transition: border-color 0.14s;
}

.auth-input:focus {
  outline: none;
  border-bottom-color: #8A0000;
}

.auth-submit {
  display: block;
  width: 100%;
  background: #8A0000;
  color: #EFEACC;
  font-weight: 600;
  font-size: 13px;
  border: none;
  border-radius: 2px;
  padding: 12px 16px;
  margin-top: 8px;
  cursor: pointer;
  transition: background 0.14s;
}
.auth-submit:hover { background: #6E0000; }
.auth-submit:focus-visible {
  outline: 2px solid #9FDCEF;
  outline-offset: 2px;
}

.auth-divider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: rgba(49, 49, 104, 0.5);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.auth-divider-row::before,
.auth-divider-row::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(49, 49, 104, 0.2);
}

.auth-sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #fff;
  color: var(--cu-navy, #313168);
  border: 1.5px solid rgba(49, 49, 104, 0.28);
  border-radius: 2px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.14s, border-color 0.14s;
}
.auth-sso-btn:hover {
  background: rgba(49, 49, 104, 0.04);
  border-color: rgba(49, 49, 104, 0.45);
  text-decoration: none;
}
.auth-sso-btn:focus-visible {
  outline: 2px solid #9FDCEF;
  outline-offset: 2px;
}

.auth-form-inner .alert {
  background: transparent;
  border-left: 3px solid;
  border-radius: 0;
  padding: 8px 12px;
}
.auth-form-inner .alert-success { border-color: #166534; color: #166534; }
.auth-form-inner .alert-error { border-color: #991B1B; color: #991B1B; }
.auth-form-inner .alert-info { border-color: #1E40AF; color: #1E40AF; }
.auth-form-inner .alert-warning { border-color: #92400E; color: #92400E; }

.auth-footer-note {
  margin-top: 24px;
  font-size: 11px;
  color: rgba(49, 49, 104, 0.6);
  text-align: center;
}

/* --------------------------------------------------------------------
   Mobile (<= 720px): stack, identity panel collapses to a strip
   -------------------------------------------------------------------- */

@media (max-width: 720px) {
  .auth-shell { flex-direction: column; min-height: auto; }

  .auth-identity {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    padding: 20px;
    gap: 14px;
  }
  .auth-identity img.crest {
    width: 62px;
    height: 62px;
    margin-bottom: 0;
  }
  .auth-university { font-size: 1.15rem; margin: 0; }
  .auth-divider, .auth-faculty, .auth-faculty-caps { display: none; }

  .auth-form-panel { padding: 32px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-input, .auth-submit, .auth-sso-btn { transition: none; }
}
