:root {
  --atom: #1c3d8f;
  --atom-deep: #071228;
  --atom-mid: #13294f;
  --atom-soft: #516b9e;
  --atom-glow: #7aa0ff;
  --atom-mist: #eef2f8;
  --atom-text: #122033;
  --atom-muted: #5c6b80;
  --radius: 22px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body.auth-body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--atom-text);
  background: var(--atom-deep);
  min-height: 100vh;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.auth-brand {
  position: relative;
  overflow: hidden;
  padding: 56px 64px;
  color: #fff;
  background:
    radial-gradient(900px 480px at -10% 110%, rgba(81, 107, 158, .45), transparent 60%),
    radial-gradient(700px 420px at 110% -10%, rgba(122, 160, 255, .28), transparent 55%),
    linear-gradient(165deg, #0b1730 0%, #12284d 52%, #0a1428 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-brand::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  bottom: -90px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
}

.auth-brand::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: 30px;
  bottom: 20px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 50%;
}

.auth-brand > * { position: relative; z-index: 1; }

.auth-logo-wrap {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 18px;
  padding: 10px 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  max-width: 280px;
}

.auth-logo-wrap-new {
  background: transparent;
  box-shadow: none;
  padding: 0;
  max-width: none;
  border-radius: 0;
}

.atom-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0b1f4b;
}
.atom-lockup img {
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 12px;
}
.atom-lockup-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.atom-lockup-text b {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .08em;
  font-style: normal;
}
.atom-lockup-text em {
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .62;
}
.atom-lockup-light { color: #fff; }
.atom-lockup-light .atom-lockup-text em { opacity: .8; }

.auth-kicker {
  margin: 36px 0 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: #b9c7e6;
}

.auth-brand h1 {
  margin: 0 0 16px;
  font-size: 42px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.03em;
  max-width: 520px;
}

.auth-brand p {
  margin: 0;
  max-width: 460px;
  font-size: 16px;
  line-height: 1.65;
  color: #d5deef;
}

.auth-points {
  margin-top: 40px;
  display: grid;
  gap: 12px;
}

.auth-points span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #e8eef9;
}

.auth-points i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(122, 160, 255, .18);
  color: #c9d8ff;
  font-size: 12px;
  font-style: normal;
}

.auth-panel {
  background: var(--atom-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 36px 32px;
  box-shadow: 0 24px 60px rgba(16, 32, 64, .1);
}

.auth-card h2,
.auth-card h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.03em;
  text-align: left;
  color: var(--atom-text);
}

.auth-lead {
  margin: 0 0 28px;
  color: var(--atom-muted);
  font-size: 15px;
  line-height: 1.5;
}

.auth-alert {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff1f1;
  color: #9b1c1c;
  border: 1px solid #ffd0d0;
  font-size: 14px;
  font-weight: 600;
}

.auth-alert.ok {
  background: #ecfdf3;
  color: #067647;
  border-color: #bbf7d0;
}

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

.auth-label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"],
.auth-card input[type="tel"],
.auth-card input[type="phone"] {
  width: 100%;
  height: 50px;
  border: 1px solid #d9e1ee;
  background: #f8fafc;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--atom-text);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.auth-card input:focus {
  background: #fff;
  border-color: var(--atom-soft);
  box-shadow: 0 0 0 4px rgba(81, 107, 158, .16);
}

.auth-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.auth-link {
  color: var(--atom);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

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

.auth-note {
  font-size: 13px;
  color: var(--atom-muted);
  line-height: 1.5;
  margin: 4px 0 2px;
}

.auth-note a {
  color: var(--atom);
  font-weight: 700;
  text-decoration: none;
}

.btn-auth,
.btn-auth-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  border: 0;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn-auth {
  background: linear-gradient(180deg, #5b79b3, var(--atom-soft));
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(81, 107, 158, .32);
}

.btn-auth:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(81, 107, 158, .4);
}

.btn-auth-ghost {
  background: #fff;
  color: var(--atom-text) !important;
  border: 1px solid #d7e0ee;
}

.btn-auth-ghost:hover { background: #f5f8fc; }

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--atom-muted);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.auth-back:hover { color: var(--atom); }

.auth-shell { width: 100%; }

@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand {
    padding: 36px 22px 28px;
    min-height: auto;
  }
  .auth-logo-wrap {
    max-width: min(280px, calc(100% - 8px));
  }
  .auth-brand h1 { font-size: 28px; }
  .auth-points { display: none; }
  .auth-panel { padding: 18px 16px 40px; align-items: flex-start; }
  .auth-card { padding: 28px 20px; border-radius: 18px; }
}
