:root {
  --auth-navy: #0a192f;
  --auth-blue: #1e6fff;
  --auth-blue-mid: #2563eb;
  --auth-blue-deep: #0b3db8;
  --auth-blue-dark: #062a7a;
  --auth-tagline: #1e3a8a;
  --auth-white: #ffffff;
  --auth-muted: #64748b;
  --auth-input-bg: #eef5ff;
  --auth-input-border: #93c5fd;
  --auth-card-shadow: 0 18px 40px rgba(0, 20, 80, 0.28);
}

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

body.auth-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Nunito", "Open Sans", Arial, sans-serif;
  color: var(--auth-white);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='1.2' d='M60 2 L118 34 V86 L60 118 L2 86 V34 Z'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--auth-blue-mid) 0%, var(--auth-blue-deep) 55%, var(--auth-blue-dark) 100%);
  background-size: 120px 104px, cover;
}

.auth-header {
  background: var(--auth-navy);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.auth-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--auth-white);
  padding: 2px;
  flex-shrink: 0;
}

.auth-brand-title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.auth-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2.25rem 1.5rem 2rem;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

.auth-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

.auth-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.85rem;
}

.auth-copy .tagline {
  color: var(--auth-tagline);
  font-weight: 800;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  margin: 0 0 1.25rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.15);
}

.auth-copy p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 36rem;
  opacity: 0.96;
}

.auth-why-pill {
  display: inline-block;
  margin: 1.25rem 0 0.85rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--auth-white);
  font-weight: 700;
  font-size: 0.95rem;
}

.auth-slogan {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 800;
  margin: 0.5rem 0 0;
  line-height: 1.35;
}

.auth-card {
  background: var(--auth-white);
  color: #0f2744;
  border-radius: 16px;
  box-shadow: var(--auth-card-shadow);
  padding: 2rem 1.75rem 1.75rem;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  position: relative;
}

.auth-card-logo {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: #f8fafc;
}

.auth-card h2 {
  text-align: center;
  color: #0f2744;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
}

.auth-card .hint {
  text-align: center;
  color: var(--auth-muted);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
}

.auth-alert {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.auth-form-group {
  margin-bottom: 1rem;
}

.auth-form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--auth-muted);
  margin-bottom: 0.35rem;
}

.auth-form-group input {
  width: 100%;
  border: 1px solid var(--auth-input-border);
  background: var(--auth-input-bg);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  color: #0f2744;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-form-group input:focus {
  border-color: var(--auth-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap input {
  padding-right: 2.75rem;
}

.auth-password-toggle {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.15rem;
  line-height: 1;
}

.auth-password-toggle:hover {
  color: #64748b;
}

.auth-submit {
  width: 100%;
  margin-top: 0.35rem;
  border: none;
  border-radius: 8px;
  background: var(--auth-blue);
  color: var(--auth-white);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.auth-submit:hover {
  background: var(--auth-blue-deep);
  transform: translateY(-1px);
}

.auth-forgot {
  display: block;
  text-align: center;
  margin-top: 1rem;
  color: var(--auth-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.auth-forgot:hover {
  text-decoration: underline;
}

.auth-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.auth-stat-card {
  background: var(--auth-white);
  color: #0f2744;
  border-radius: 999px;
  padding: 0.95rem 1.1rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 20, 80, 0.18);
  font-weight: 800;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  line-height: 1.3;
}

.auth-footer {
  background: transparent;
  text-align: center;
  padding: 1rem 1.5rem 1.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .auth-hero {
    grid-template-columns: 1fr;
  }

  .auth-card {
    margin: 0 auto;
  }

  .auth-copy {
    text-align: center;
  }

  .auth-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .auth-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .auth-header {
    padding: 0.75rem 1rem;
  }

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

  .auth-card {
    padding: 1.5rem 1.15rem 1.25rem;
  }

  .auth-stats {
    grid-template-columns: 1fr;
  }

  .auth-stat-card {
    border-radius: 12px;
  }
}

/* ---- Standalone landing page (/) ---- */

:root {
  --landing-navy: #0a192f;
  --landing-navy-deep: #07111f;
  --landing-blue: #2563eb;
  --landing-blue-dark: #1d4ed8;
  --landing-red: #c53030;
  --landing-red-hover: #9b2424;
  --landing-gray: #e8eef5;
  --landing-text: #0f2744;
  --landing-white: #ffffff;
}

body.landing-page {
  margin: 0;
  font-family: "Nunito", "Open Sans", Arial, sans-serif;
  color: var(--landing-text);
  background: var(--landing-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-header {
  background: var(--landing-navy);
  color: var(--landing-white);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.landing-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--landing-white);
  padding: 2px;
  flex-shrink: 0;
}

.landing-brand-title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--landing-red);
  color: var(--landing-white);
  text-decoration: none;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.15rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.landing-btn:hover,
.landing-btn:focus {
  background: var(--landing-red-hover);
  color: var(--landing-white);
  transform: translateY(-1px);
}

.landing-btn-lg {
  padding: 0.85rem 1.4rem;
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

.landing-hero {
  background: linear-gradient(135deg, var(--landing-blue) 0%, var(--landing-blue-dark) 100%);
  color: var(--landing-white);
  padding: 3rem 1.5rem 3.5rem;
  flex: 1;
}

.landing-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.landing-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.landing-hero .tagline {
  color: #c7d7fe;
  font-weight: 800;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  margin: 0 0 1.25rem;
}

.landing-hero p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 36rem;
  opacity: 0.95;
}

.landing-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.landing-hero-visual img {
  width: 100%;
  max-width: 520px;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.28));
}

.landing-stats {
  background: var(--landing-gray);
  padding: 3rem 1.5rem 3.5rem;
  text-align: center;
}

.landing-stats h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--landing-navy);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}

.landing-stats .subtitle {
  color: #5b6b7c;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 2rem;
}

.landing-stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.landing-stat-card {
  background: var(--landing-white);
  border-radius: 12px;
  padding: 1.75rem 1rem;
  box-shadow: 0 8px 20px rgba(10, 25, 47, 0.08);
  color: var(--landing-navy);
  font-weight: 800;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  line-height: 1.35;
}

.landing-footer {
  background: var(--landing-navy-deep);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  padding: 1.1rem 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
}

@media (max-width: 992px) {
  .landing-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .landing-hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .landing-hero-visual {
    order: -1;
  }

  .landing-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .landing-brand-title {
    white-space: normal;
  }

  .landing-stats-grid {
    grid-template-columns: 1fr;
  }

  .landing-header {
    padding: 0.75rem 1rem;
  }
}
