:root {
  --auth-dark: #132f4e;
  --auth-blue: #1f4f84;
  --auth-ink: #21384e;
  --auth-muted: #6d7f90;
  --auth-line: #d7dfe7;
  --auth-surface: #eef3f8;
  --auth-danger: #a84040;
}

* { box-sizing: border-box; }

body.auth-page {
  min-height: 100vh;
  margin: 0;
  overflow: auto;
  color: var(--auth-ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 81, 132, .11), transparent 34%),
    linear-gradient(180deg, #eef4f9 0%, #f8fbfe 52%, #e7eef6 100%);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

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

.auth-shell-centered {
  place-items: center;
  padding: clamp(24px, 5vw, 64px);
}

.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(34px, 6vw, 76px);
  color: #eef6ff;
  background: linear-gradient(160deg, #122942 0%, #173a60 62%, #1d4f88 100%);
  overflow: hidden;
}

.auth-brand::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  bottom: -190px;
  border: 70px solid rgba(143, 217, 245, .08);
  border-radius: 50%;
}

.auth-logo { width: min(260px, 75%); height: auto; position: relative; z-index: 1; }
.auth-brand-copy { position: relative; z-index: 1; max-width: 510px; }
.auth-kicker { color: #8fd9f5; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.auth-brand h1 { margin: 14px 0 12px; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 300; line-height: 1.05; }
.auth-brand p { margin: 0; max-width: 430px; color: #c8d7e8; font-size: 1rem; line-height: 1.7; }
.auth-brand small { position: relative; z-index: 1; color: #9fb3c9; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: clamp(24px, 7vw, 90px); }

.auth-card {
  width: min(100%, 430px);
  padding: 30px 30px 22px;
  border-radius: 22px;
  border: 1px solid rgba(215, 223, 231, .9);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 60px rgba(24, 45, 73, .16);
  backdrop-filter: blur(8px);
}

.auth-card-login { text-align: center; }

.auth-card-brand {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.auth-logo-login { width: min(240px, 80%); }

.auth-brand-copy-login { max-width: 100%; }

.auth-brand-copy-login h1 {
  margin: 8px 0 0;
  color: var(--auth-ink);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.01em;
}

.auth-brand-copy-login p {
  margin: 0;
  color: var(--auth-muted);
  font-size: .95rem;
  line-height: 1.5;
}

.auth-kicker-login { display: none; }

.auth-card-head { margin-bottom: 20px; }
.auth-card-head span { display: none; }
.auth-card-head-login { margin-bottom: 18px; }
.auth-card-head-login h2 {
  margin: 0;
  color: #5f7080;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: .01em;
}
.auth-card-head-login p { margin: 6px 0 0; color: var(--auth-muted); line-height: 1.55; font-size: .95rem; }
.auth-field { margin-bottom: 18px; }
.auth-field label { display: block; margin-bottom: 7px; color: #38536f; font-size: .86rem; font-weight: 600; }
.auth-input-wrap { position: relative; }
.auth-input-wrap i { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); color: #7590aa; }
.auth-input {
  width: 100%;
  height: 50px;
  padding: 0 15px 0 43px;
  border: 1px solid var(--auth-line);
  border-radius: 11px;
  background: linear-gradient(180deg, #fefefe 0%, #f1f5f9 100%);
  color: var(--auth-ink);
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06), 0 1px 0 rgba(255, 255, 255, .7);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.auth-input:focus {
  border-color: #7fa7c7;
  box-shadow: 0 0 0 3px rgba(76, 125, 171, .14), inset 0 1px 2px rgba(0, 0, 0, .03);
  transform: translateY(-1px);
}
.auth-submit {
  width: 100%;
  height: 52px;
  margin-top: 8px;
  border: 0;
  border-radius: 11px;
  background: #1f4f84;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(19, 47, 78, .18);
  transition: background-color .18s ease, box-shadow .18s ease;
}
.auth-submit:hover {
  background: #163d66;
  box-shadow: 0 12px 22px rgba(19, 47, 78, .22);
}

.auth-links-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.auth-secondary-action {
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #55697d;
  font-size: .85rem;
  cursor: pointer;
}

.auth-secondary-action:hover { color: #163d66; }

.auth-alert { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #e5bcbc; border-radius: 10px; background: #fff2f2; color: var(--auth-danger); font-size: .9rem; text-align: left; }
.auth-security { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; color: var(--auth-muted); font-size: .8rem; }
.auth-security i { color: #4f799f; }

.auth-developed {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 16px;
}

.auth-developed-label {
  color: #8f99a5;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.auth-developed-logo {
  width: min(110px, 25%);
  height: auto;
}

.auth-footnote {
  margin-top: 22px;
  color: #a3adba;
  font-size: .72rem;
  text-align: center;
}

@media (max-width: 820px) {
  .auth-shell-centered { padding: 20px; }
  .auth-card { width: min(100%, 430px); padding: 26px 22px 20px; }
}

@media (max-width: 430px) {
  .auth-card { padding: 22px 16px 18px; border-radius: 18px; }
  .auth-brand-copy-login h1 { font-size: 1.05rem; }
  .auth-brand-copy-login p { font-size: .9rem; }
  .auth-card-head-login h2 { font-size: 1.2rem; }
  .auth-links-row { flex-direction: column; align-items: stretch; }
  .auth-secondary-action { text-align: center; }
  .auth-footnote { line-height: 1.4; }
}
