:root {
  --primary: #ff6b2c;
  --primary-dark: #d94f19;
  --primary-soft: rgba(255, 107, 44, 0.14);
  --ink: #101828;
  --muted: #5f6c7b;
  --panel: rgba(255, 255, 255, 0.88);
  --line: rgba(16, 24, 40, 0.1);
  --surface: #fffdf9;
  --hero-deep: #14213d;
  --hero-mid: #1f3b73;
  --hero-soft: #f4ede2;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 107, 44, 0.2), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(20, 33, 61, 0.16), transparent 28%),
    linear-gradient(135deg, #f6efe5 0%, #f4f5f8 48%, #eef3fb 100%);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--ink);
  overflow-y: auto;
}

.alert-box {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 14px 18px;
  border-radius: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 320px;
  box-shadow: 0 24px 48px rgba(16, 24, 40, 0.18);
  z-index: 20;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.alert-success { background: rgba(16, 185, 129, 0.18); color: #065f46; }
.alert-error { background: rgba(239, 68, 68, 0.18); color: #7f1d1d; }
.alert-icon { font-size: 22px; line-height: 1; }
.alert-title { font-weight: 600; text-transform: uppercase; font-size: 0.78rem; }
.alert-message { font-size: 0.85rem; }
.alert-close {
  background: transparent;
  border: none;
  font-size: 1rem;
  color: inherit;
  cursor: pointer;
}

.auth-page {
  width: min(1180px, 100%);
  margin: auto 0;
}

.auth-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 440px);
  background: rgba(255, 255, 255, 0.52);
  border-radius: 32px;
  padding: 18px;
  box-shadow: 0 34px 90px rgba(16, 24, 40, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
}

.auth-card__logo {
  display: flex;
  align-items: center;
}

.auth-card__logo img {
  width: 112px;
  object-fit: contain;
  max-width: 100%;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.14));
}

.auth-tagline {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.auth-hero {
  position: relative;
  overflow: hidden;
  padding: 36px;
  border-radius: 26px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.1), transparent 36%),
    linear-gradient(135deg, var(--hero-deep) 0%, var(--hero-mid) 65%, #224f9d 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 680px;
}

.auth-hero::before,
.auth-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.auth-hero::before {
  width: 280px;
  height: 280px;
  top: -90px;
  right: -70px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 72%);
}

.auth-hero::after {
  width: 240px;
  height: 240px;
  left: -90px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(255, 107, 44, 0.28), transparent 70%);
}

.auth-hero__masthead,
.auth-hero__copy,
.auth-hero__grid,
.auth-hero__list {
  position: relative;
  z-index: 1;
}

.auth-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
}

.auth-hero__eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffd8c5;
}

.auth-hero__title {
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.auth-hero__text {
  max-width: 480px;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.76);
}

.auth-hero__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-stat {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-stat__label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 10px;
}

.hero-stat__value {
  font-size: 1rem;
  line-height: 1.4;
  color: #fff8f3;
}

.auth-hero__list {
  display: grid;
  gap: 12px;
}

.hero-point {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(7, 16, 36, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-point i {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 44, 0.2);
  color: #ffd4bf;
}

.hero-point span {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.5;
}

.auth-card {
  background: var(--panel);
  border-radius: 26px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.auth-pill {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 44, 0.22);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
  background: rgba(255, 107, 44, 0.08);
}

.auth-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.04em;
}

.auth-subtitle {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.96rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #202939;
}

.auth-field__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-field__meta {
  font-size: 0.76rem;
  color: var(--muted);
}

.input-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.92rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.input-shell:focus-within {
  border-color: rgba(255, 107, 44, 0.5);
  background: #fff;
  box-shadow: 0 16px 34px rgba(255, 107, 44, 0.14);
  transform: translateY(-1px);
}

.input-shell i {
  color: rgba(217, 79, 25, 0.86);
}

.input-shell--action {
  padding-right: 0.6rem;
}

.input-shell input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.94rem;
  color: var(--ink);
}

.password-toggle {
  border: none;
  background: transparent;
  color: #7b8794;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.password-toggle:hover {
  background: rgba(16, 24, 40, 0.06);
  color: var(--ink);
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 12px;
}

.captcha-graphic {
  min-width: 130px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(255, 107, 44, 0.18);
  background: linear-gradient(135deg, rgba(255, 107, 44, 0.08), rgba(20, 33, 61, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.captcha-graphic img {
  max-width: 100%;
  max-height: 100%;
}

.captcha-refresh {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(255, 107, 44, 0.14);
  background: rgba(255, 107, 44, 0.1);
  color: var(--primary);
  cursor: pointer;
  transition: transform 0.3s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.captcha-refresh:hover {
  transform: rotate(180deg);
  background: rgba(255, 107, 44, 0.18);
  box-shadow: 0 14px 28px rgba(255, 107, 44, 0.14);
}

.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}

.auth-options .remember {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-options .remember input {
  accent-color: var(--primary);
}

.auth-options a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.primary-btn {
  border: none;
  border-radius: 18px;
  padding: 0.95rem 1.1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 20px 38px rgba(217, 79, 25, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 44px rgba(217, 79, 25, 0.34);
  filter: saturate(1.05);
}

.auth-footer {
  font-size: 0.88rem;
  color: rgba(15, 23, 42, 0.64);
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  margin-left: 6px;
}

footer.auth-footer-bar {
  margin-top: 0;
  font-size: 0.82rem;
  color: rgba(15, 23, 42, 0.55);
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background-color: rgba(255, 255, 255, 0.82);
  padding: 18px 22px;
  border-radius: 18px;
  box-shadow: 0 20px 42px rgba(16, 24, 40, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.75);
  width: min(100%, 1180px);
  backdrop-filter: blur(14px);
}

.footer-links {
  gap: 10px;
  justify-content: flex-start;
  display: flex;
  margin: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  color: #4c5570;
  position: relative;
  padding-right: 10px;
}

.footer-links a::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  background: rgba(255, 107, 44, 0.45);
  transform: translateY(-50%);
  border-radius: 50%;
}

.footer-links a:last-child::after {
  display: none;
}

.footer-links a:hover {
  color: var(--primary);
}

p.text-footer-inner {
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  color: #4c5570;
  line-height: 20px;
  word-spacing: 2px;
}

.recovery-shell {
  width: min(460px, 92vw);
  margin: 8vh auto 20px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  padding: 28px 32px;
  box-shadow: 0 30px 55px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
}

.recovery-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.recovery-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

.recovery-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recovery-pill {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 107, 44, 0.08);
  color: var(--primary);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.recovery-header h2 {
  font-size: 23px;
  color: var(--ink);
  margin: 11px 0px 0;
}

.recovery-header p {
  color: var(--muted);
  line-height: 1.5;
  font-size: 15px;
  line-height: 23px;
}

.recovery-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.captcha-graphic_row {
  display: flex;
  gap: 12px;
}
.recovery-form label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #1f2937;
}
.recovery-brand img{
    width: 100px;
    object-fit: cover;
    max-width: 100%;
}

.recovery-foot {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}

.recovery-foot a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 520px) {
  body {
    padding: 18px;
    overflow: auto;
  }

  .auth-card,
  .recovery-shell {
    padding: 24px 20px;
  }

  .captcha-row {
    grid-template-columns: 1fr;
  }

  .captcha-graphic {
    width: 100%;
  }

  .captcha-graphic_row {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
  }

  footer.auth-footer-bar {
    flex-direction: column;
    text-align: center;
    width: 100%;
    padding: 18px 20px;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
    gap: 7px;
  }
  .recovery-shell {
    margin: 4vh auto 16px;
    padding: 22px;
  }
}

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

  .auth-hero {
    min-height: auto;
    padding: 30px 24px;
  }

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

  .auth-card {
    padding: 28px 24px;
  }
}

@media (max-width: 680px) {
  .auth-page {
    width: 100%;
  }

  .auth-hero__title {
    font-size: 2.2rem;
  }

  .auth-field__head,
  .auth-options {
    flex-direction: column;
    align-items: flex-start;
  }
}

.login-page {
  background: #f5f7fb;
  padding: 16px 28px 0;
}

.login-page .auth-page {
  width: min(410px, 100%);
}

.login-page .auth-wrapper {
  grid-template-columns: 1fr;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: none;
  backdrop-filter: none;
}

.login-page .auth-card {
  background: #ffffff;
  box-shadow: none;
  padding: 20px 22px;
  border: 1px solid #d9e0ea;
  border-radius: 14px;
  gap: 12px;
}

.login-page .auth-card__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.login-page .auth-card__logo--stacked {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.login-page .auth-card__logo--stacked img {
  width: 62px;
}

.login-page .auth-branding {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.login-page .auth-tagline {
  color: #64748b;
  letter-spacing: 0.14em;
  font-size: 0.62rem;
}

.login-page .auth-pill {
  background: #eef4ff;
  border-color: #cfe0ff;
  color: #2f5ca8;
  margin-bottom: 4px;
  padding: 3px 9px;
  font-size: 0.62rem;
}

.login-page .auth-title {
  font-size: 1.34rem;
  color: #0f172a;
}

.login-page .auth-subtitle {
  line-height: 1.55;
  font-size: 0.84rem;
  color: #64748b;
}

.login-page .auth-form {
  gap: 9px;
}

.login-page .auth-field {
  gap: 4px;
}

.login-page .input-shell {
  background: #f8fafc;
  border-color: #d5dde8;
  box-shadow: none;
  border-radius: 10px;
  padding: 0.62rem 0.72rem;
  gap: 8px;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.login-page .input-shell:focus-within {
  border-color: #7ea7f7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  transform: none;
}

.login-page .input-shell i,
.login-page .auth-options a,
.login-page .auth-footer a,
.login-page .auth-links__item {
  color: #475569;
}

.login-page .input-shell i {
  width: 16px;
  font-size: 0.86rem;
  text-align: center;
}

.login-page .input-shell input {
  font-size: 0.84rem;
  color: #0f172a;
  line-height: 1.2;
}

.login-page .input-shell input::placeholder {
  color: #94a3b8;
}

.login-page .auth-field label,
.login-page .auth-field__meta,
.login-page .auth-options,
.login-page .auth-footer,
.login-page .auth-links {
  color: #64748b;
}

.login-page .auth-field label {
  font-size: 0.74rem;
  color: #334155;
}

.login-page .auth-field__meta,
.login-page .auth-options,
.login-page .auth-footer,
.login-page .auth-links {
  font-size: 0.72rem;
}

.login-page .auth-field__head {
  margin-bottom: 2px;
}

.login-page .primary-btn {
  background: #1d4ed8;
  box-shadow: none;
  border-radius: 12px;
  padding: 0.68rem 0.9rem;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.login-page .auth-options {
  margin-top: 2px;
}

.login-page .auth-footer {
  margin-top: 2px;
}

.login-page .auth-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px;
}

.login-page .auth-links__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.55rem 0.75rem;
  border: 1px solid #d9e0ea;
  border-radius: 10px;
  background: #f8fafc;
  text-decoration: none;
  text-align: center;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.login-page .auth-links__item:hover {
  background: #eef4ff;
  color: #1d4ed8;
  border-color: #c7d8f7;
}

.login-page .primary-btn:hover {
  background: #1e40af;
  box-shadow: none;
  filter: none;
}

.login-page .captcha-graphic {
  background: #f8fafc;
  border-color: #d5dde8;
  border-radius: 10px;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  justify-content: center;
}

.login-page .captcha-refresh {
  background: #f8fafc;
  border-color: #d5dde8;
  color: #475569;
  border-radius: 10px;
  width: 42px;
  height: 42px;
}

.login-page .captcha-refresh:hover {
  background: #eef4ff;
  box-shadow: none;
}

.login-page footer.auth-footer-bar {
  background: #1e293b;
  box-shadow: none;
  border-top: 1px solid #334155;
  border-radius: 0;
  width: calc(100% + 56px);
  max-width: none;
  margin: auto -28px 0;
  padding: 9px 28px;
}

.login-page .footer-links a,
.login-page .text-footer-inner {
  color: #cbd5e1;
}

.login-page .footer-links a,
.login-page .text-footer-inner {
  font-size: 0.69rem;
}

.login-page .footer-links a::after {
  background: rgba(203, 213, 225, 0.45);
}

.login-page .footer-links a:hover {
  color: #f8fafc;
}

.login-page .footer-links a,
.login-page .text-footer-inner,
.login-page .footer-links a::after {
  transition: color 0.18s ease, background-color 0.18s ease;
}

.login-page .captcha-row {
  grid-template-columns: minmax(0, 1fr) 138px 42px;
  gap: 10px;
}

.login-page .captcha-graphic_row {
  display: contents;
}

.login-page .captcha-graphic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-page .password-toggle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.login-page .auth-card--compact {
  gap: 14px;
}

.login-page .auth-card--compact .primary-btn {
  width: 100%;
}

.login-page .auth-links--stacked {
  grid-template-columns: 1fr;
}

@media (max-width: 520px) {
  .login-page {
    padding: 12px 18px 0;
  }

  .login-page footer.auth-footer-bar {
    width: calc(100% + 36px);
    margin: auto -18px 0;
    padding: 8px 18px;
  }

  .login-page .captcha-row {
    grid-template-columns: 1fr;
  }

  .login-page .captcha-graphic_row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 10px;
  }

  .login-page .auth-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .login-page .auth-wrapper {
    grid-template-columns: 1fr;
  }
}
