﻿@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700;800&family=Manrope:wght@600;700;800&display=swap');

:root {
  --student-navy: #0b1f3f;
  --student-navy-2: #15335f;
  --student-green: #1f8f4f;
  --student-green-soft: rgba(31, 143, 79, 0.1);
  --student-bg: #f5f8fb;
  --student-card: #ffffff;
  --student-border: rgba(16, 42, 82, 0.1);
  --student-text: #10213a;
  --student-muted: #627285;
  --student-shadow: 0 18px 50px rgba(13, 31, 61, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--student-text);
  background:
    radial-gradient(circle at 12% 10%, rgba(31, 143, 79, 0.08), transparent 22rem),
    radial-gradient(circle at 90% 18%, rgba(16, 42, 82, 0.1), transparent 24rem),
    linear-gradient(180deg, #f8fbff 0%, #f2f6fb 100%);
  font-family: 'DM Sans', sans-serif;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.student-login-page,
.student-register-page,
.student-dashboard-page { overflow-x: hidden; }

.student-auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.student-auth-shell {
  width: min(540px, calc(100% - 0px));
}

.student-auth-shell--register {
  width: min(740px, calc(100% - 0px));
}

.student-auth-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 36px 38px 34px;
  border: 1px solid rgba(16, 42, 82, 0.10);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 70px rgba(13, 31, 61, 0.16), 0 8px 22px rgba(31, 143, 79, 0.05);
  backdrop-filter: blur(10px);
}

.student-auth-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  border-radius: 26px 26px 0 0;
  background: linear-gradient(90deg, var(--student-green), #2ea96b);
}

.student-auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(16, 42, 82, 0.08);
}

.student-auth-logo,
.student-auth-logo img {
  width: 66px;
  height: 66px;
}

.student-auth-logo {
  flex: 0 0 auto;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(16, 42, 82, 0.08);
  background: linear-gradient(180deg, #ffffff, #f5f9fd);
  box-shadow: 0 10px 24px rgba(13, 31, 61, 0.08);
}

.student-auth-brand__text {
  display: grid;
  gap: 3px;
}

.student-auth-brand__text strong,
.student-auth-heading h1 {
  font-family: 'Manrope', sans-serif;
}

.student-auth-brand__text strong {
  font-size: 1.08rem;
  line-height: 1.15;
}

.student-auth-brand__text span {
  color: var(--student-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.student-auth-heading {
  display: grid;
  gap: 5px;
  padding-top: 2px;
}

.student-auth-heading h1 {
  margin: 0;
  color: var(--student-navy);
  font-size: clamp(1.7rem, 3.4vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.student-auth-heading p {
  margin: 0;
  color: var(--student-muted);
  line-height: 1.5;
  font-size: 0.98rem;
}

.student-form--auth {
  display: grid;
  gap: 16px;
  margin-top: 2px;
}

.student-form-section {
  display: grid;
  gap: 12px;
  padding: 16px 16px 15px;
  border: 1px solid rgba(16, 42, 82, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.student-form-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.student-form-section__head span {
  color: var(--student-green);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.student-form-grid {
  display: grid;
  gap: 14px;
}

.student-form-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.student-field {
  display: grid;
  gap: 8px;
}

.student-field--full {
  grid-column: 1 / -1;
}

.student-field label {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--student-navy);
}

.student-field__optional {
  color: var(--student-muted);
  font-weight: 700;
}

.student-field input,
.student-field select {
  width: 100%;
  min-height: 54px;
  padding: 0 15px;
  border: 1px solid rgba(16, 42, 82, 0.14);
  border-radius: 13px;
  background: #fbfdff;
  color: var(--student-text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.student-field input::placeholder {
  color: #8a98ab;
}

.student-field input:focus,
.student-field select:focus {
  border-color: rgba(31, 143, 79, 0.54);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(31, 143, 79, 0.10);
}

.password-row {
  position: relative;
}

.password-row input {
  padding-right: 92px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 66px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(16, 42, 82, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: var(--student-navy);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.student-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--student-text);
  font-size: 0.94rem;
  font-weight: 600;
}

.student-check--full {
  padding: 4px 2px 0;
}

.student-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--student-green);
}

.student-button,
.panel-button,
.chip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.student-button:hover,
.panel-button:hover,
.chip-button:hover {
  transform: translateY(-1px);
}

.student-button--primary,
.panel-button--primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--student-green), #167345);
  box-shadow: 0 14px 30px rgba(31, 143, 79, 0.24);
}

.student-button--primary:hover,
.panel-button--primary:hover {
  box-shadow: 0 18px 34px rgba(31, 143, 79, 0.28);
}

.student-button--secondary,
.panel-button--secondary {
  color: var(--student-navy);
  border-color: rgba(31, 143, 79, 0.18);
  background: rgba(31, 143, 79, 0.06);
}

.student-button--secondary:hover,
.panel-button--secondary:hover {
  border-color: rgba(31, 143, 79, 0.28);
  background: rgba(31, 143, 79, 0.10);
}

.student-button--full {
  width: 100%;
}

.student-button:disabled,
.panel-button:disabled,
.chip-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
  box-shadow: none;
}

.student-auth-register {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 16px 16px 15px;
  border: 1px solid rgba(31, 143, 79, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(236, 250, 242, 0.96), rgba(248, 253, 250, 0.98));
}

.student-auth-register p {
  margin: 0;
  color: var(--student-navy);
  font-size: 0.95rem;
  font-weight: 800;
}

.student-auth-register .student-button {
  min-height: 52px;
}

.student-auth-status,
.panel-status {
  min-height: 22px;
  margin: 0;
  color: var(--student-muted);
  line-height: 1.55;
}

.student-auth-status.is-error,
.panel-status.is-error { color: #b42318; }
.student-auth-status.is-success,
.panel-status.is-success { color: #0f7f49; }
.student-auth-status.is-loading,
.panel-status.is-loading { color: var(--student-navy); }

.student-auth-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--student-muted);
  font-size: 0.92rem;
  font-weight: 700;
  padding-top: 2px;
}

.student-auth-footer-link {
  color: var(--student-navy);
  font-weight: 800;
}

.login-footnote,
.login-features,
.student-login-hero,
.student-login-shell,
.student-kicker,
.student-actions,
.student-button--ghost,
.student-status,
.student-auth-link {
  display: none !important;
}

.student-form {
  display: grid;
  gap: 16px;
  margin-top: 0;
}

@media (max-width: 720px) {
  .student-auth-page {
    padding: 14px;
  }

  .student-auth-card {
    padding: 22px;
    border-radius: 24px;
  }

  .student-auth-logo,
  .student-auth-logo img {
    width: 56px;
    height: 56px;
  }

  .student-auth-shell,
  .student-auth-shell--register {
    width: min(100%, 100%);
  }

  .student-form-grid--two {
    grid-template-columns: 1fr;
  }

  .student-auth-register {
    padding: 14px;
  }

  .student-auth-footer-links {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
