/* Login page — matches premium split-screen design */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --login-navy: #0f2744;
  --login-navy-deep: #0a1c33;
  --login-blue: #1e4d8c;
  --login-btn: #1a4f9c;
  --login-btn-hover: #163f7d;
  --login-gold: #c9a227;
  --login-ink: #1a2332;
  --login-label: #3d4a5c;
  --login-muted: #6b7785;
  --login-line: #d8dee6;
  --login-panel: #eef1f5;
  --login-card: #ffffff;
  --login-danger: #b42318;
  --login-warn: #b54708;
  --login-ok: #067647;
  --login-font-display: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --login-font-ui: 'Source Sans 3', 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.login-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--login-font-ui);
  color: var(--login-ink);
  background: var(--login-navy-deep);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 2.4rem;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}

/* —— Hero —— */
.login-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5rem);
  background:
    linear-gradient(115deg, rgba(10, 28, 51, 0.82) 0%, rgba(15, 39, 68, 0.72) 45%, rgba(10, 28, 51, 0.78) 100%),
    url('../../images/login-hero-campus.jpg') center / cover no-repeat;
}

.login-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 20, 38, 0.55) 0%, transparent 50%);
  pointer-events: none;
}

.login-hero__content {
  position: relative;
  z-index: 1;
  max-width: min(46rem, 100%);
  animation: loginRise 0.85s ease-out both;
}

.login-hero__brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 0;
  flex-wrap: nowrap;
}

.login-hero__logo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.7rem;
}

.login-hero__logo {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  object-fit: contain;
  background: #000;
  border-radius: 18px;
  padding: 6px;
  margin: 0;
  border: 1px solid rgba(201, 162, 39, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.login-hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.login-hero__brand-name {
  font-family: var(--login-font-display);
  font-size: clamp(2.85rem, 5vw, 4.35rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0;
  white-space: normal;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.4);
}

.login-hero__tag {
  margin: 0.55rem 0 0;
  font-size: clamp(0.95rem, 1.4vw, 1.12rem);
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  max-width: 34rem;
}

.login-hero__accent {
  display: block;
  width: 52px;
  height: 3px;
  background: var(--login-gold);
  border-radius: 2px;
  margin: 0 auto;
}

/* —— Panel —— */
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--login-panel);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--login-card);
  border-radius: 18px;
  padding: 2.35rem 2.1rem 2rem;
  box-shadow:
    0 1px 2px rgba(15, 39, 68, 0.04),
    0 22px 50px rgba(15, 39, 68, 0.1);
  animation: loginFade 0.7s ease-out 0.12s both;
}

.login-card__title {
  font-family: var(--login-font-display);
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--login-navy);
  letter-spacing: -0.02em;
}

.login-card__sub {
  margin: 0 0 1.65rem;
  color: var(--login-muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.login-field {
  margin-bottom: 1.15rem;
}

.login-field label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--login-label);
  margin-bottom: 0.45rem;
  letter-spacing: 0;
  text-transform: none;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-wrap .login-ico {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #8b96a8;
  pointer-events: none;
  z-index: 1;
}

.login-input-wrap .login-ico svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-field input,
.login-input {
  display: block;
  width: 100%;
  height: 50px;
  margin: 0;
  border: 1.5px solid var(--login-line);
  border-radius: 12px;
  padding: 0 14px 0 44px;
  font-size: 16px;
  line-height: 1.4;
  font-family: var(--login-font-ui);
  color: var(--login-ink);
  background: #fff;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-field input.login-input--plain {
  padding-left: 14px;
}

.login-field input.has-toggle {
  padding-right: 46px;
}

.login-field input:hover {
  border-color: #b8c2d1;
}

.login-field input:focus {
  border-color: #3b6fb5;
  box-shadow: 0 0 0 3px rgba(30, 77, 140, 0.15);
}

.login-field input::placeholder {
  color: #9aa5b5;
  opacity: 1;
}

.login-field input:-webkit-autofill,
.login-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--login-ink);
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 9999s ease-in-out 0s;
}

.login-toggle-pass {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #8b96a8;
  cursor: pointer;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.login-toggle-pass:hover {
  color: var(--login-blue);
  background: rgba(30, 77, 140, 0.06);
}

.login-toggle-pass svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-actions {
  margin-top: 1.5rem;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 12px;
  background: var(--login-btn);
  color: #fff !important;
  font-family: var(--login-font-ui);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(26, 79, 156, 0.28);
}

.login-btn:hover,
.login-btn:focus {
  background: var(--login-btn-hover);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(26, 79, 156, 0.34);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.35rem 0 1.1rem;
  color: #9aa5b5;
  font-size: 0.88rem;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e1e6ed;
}

.login-help {
  text-align: center;
}

.login-help a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--login-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.login-help a:hover {
  text-decoration: underline;
}

.login-help a svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-alert {
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  margin-bottom: 1.15rem;
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 500;
  animation: loginShake 0.4s ease-out;
}

.login-alert--error {
  background: #fef3f2;
  color: var(--login-danger);
  border: 1px solid #fecdca;
}

.login-alert--ok {
  background: #ecfdf3;
  color: var(--login-ok);
  border: 1px solid #abefc6;
}

.login-alert--warn {
  background: #fff6ed;
  color: var(--login-warn);
  border: 1px solid #f9dbaf;
}

.login-alert--info {
  background: #eff8ff;
  color: #175cd3;
  border: 1px solid #b2ddff;
}

.login-expire {
  margin-bottom: 1.1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: #fff6ed;
  border: 1px solid #f9dbaf;
  color: var(--login-warn);
  font-size: 0.92rem;
  font-weight: 600;
  animation: loginPulse 2.2s ease-in-out infinite;
}

.login-serial-note {
  margin-top: 1.25rem;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  background: #f3f6fa;
  color: var(--login-ink);
  font-size: 0.9rem;
  line-height: 1.55;
  border: 1px solid #e5ebf2;
}

.login-serial-note strong {
  color: var(--login-navy);
}

@keyframes loginRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes loginFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes loginShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@keyframes loginPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

@media (max-width: 920px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-hero {
    min-height: 34vh;
    justify-content: flex-end;
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .login-hero__logo {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    margin: 0;
  }

  .login-hero__brand-name {
    font-size: clamp(1.55rem, 6.5vw, 2.25rem);
    white-space: normal;
  }

  .login-hero__tag {
    font-size: 0.9rem;
  }

  .login-panel {
    min-height: 66vh;
    align-items: flex-start;
    padding-top: 1.35rem;
  }

  .login-card {
    margin-top: -2.25rem;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 1.6rem 1.2rem 1.4rem;
  }

  .login-hero__brand {
    gap: 0.75rem;
  }
}

.login-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  text-align: center;
  padding: 0.55rem 1rem;
  font-family: var(--login-font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(10, 28, 51, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}
