:root {
  --auth-card: rgba(18, 24, 40, 0.88);
  --auth-field: rgba(10, 14, 26, 0.7);
  --auth-field-2: rgba(8, 12, 20, 0.92);
}

.auth-shell {
  padding: 18px 18px 18px;
}

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

.auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.back-link {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--stroke-strong);
  background: rgba(12, 16, 28, 0.8);
  color: var(--accent-3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.back-link:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 176, 122, 0.6);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.auth-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  margin-top: 16px;
  position: relative;
  z-index: 2;
}

.auth-left {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(600px 320px at 35% 25%, rgba(255, 220, 170, 0.18), transparent 60%),
    radial-gradient(520px 300px at 70% 10%, rgba(120, 160, 220, 0.16), transparent 60%),
    linear-gradient(135deg, rgba(12, 16, 28, 0.88), rgba(10, 12, 20, 0.96));
  overflow: hidden;
  position: relative;
  min-height: 520px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
}

.auth-left::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 12, 20, 0.0), rgba(10, 12, 20, 0.65)),
    radial-gradient(800px 460px at 25% 20%, rgba(255, 255, 255, 0.06), transparent 60%);
  pointer-events: none;
}

.auth-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(240px 260px at 40% 30%, rgba(255, 230, 205, 0.26), transparent 65%),
    linear-gradient(180deg, rgba(80, 95, 130, 0.18), rgba(16, 20, 35, 0.9) 72%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1100' height='700' viewBox='0 0 1100 700'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%23f0d6b0' stop-opacity='0.28' offset='0'/%3E%3Cstop stop-color='%23818bb5' stop-opacity='0.12' offset='1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)' stroke-width='3'%3E%3Cpath d='M270 120c80 30 150 140 120 230-40 120-190 120-240 20-60-120 10-300 120-250Z'/%3E%3Cpath d='M240 450c120-140 240-170 360-160 170 15 310 110 360 260 40 120-20 220-110 240-150 35-520-55-610-340Z'/%3E%3Cpath d='M420 160c90 120 70 270 10 360-45 70-120 110-190 150'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 18% 35%;
  background-size: cover;
  filter: contrast(1.05) saturate(1.05);
  opacity: 0.95;
  animation: float 18s ease-in-out infinite;
}

.auth-left-content {
  position: absolute;
  left: 28px;
  bottom: 26px;
  right: 28px;
  display: grid;
  gap: 14px;
  z-index: 2;
}

.auth-logo {
  font-family: "Cinzel", serif;
  font-size: 42px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-3);
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.auth-logo-sub {
  font-family: "Cinzel", serif;
  font-size: 16px;
  letter-spacing: 0.24em;
  color: rgba(214, 176, 122, 0.9);
  text-transform: uppercase;
}

.auth-left-cta {
  width: fit-content;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 14, 26, 0.55);
  color: var(--text);
  text-decoration: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.auth-right {
  display: grid;
  align-content: center;
}

.auth-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, var(--auth-card), rgba(9, 12, 20, 0.92));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 22px 22px 18px;
  position: relative;
  overflow: hidden;
}

.auth-card::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.08) 48%, transparent 62%);
  transform: translateX(-45%);
  animation: sheen 22s linear infinite;
  pointer-events: none;
}

.auth-brand {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.auth-brand-badge {
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--accent-3);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-family: "Cinzel", serif;
  background: rgba(8, 12, 20, 0.55);
}

.auth-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.field {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, var(--auth-field), var(--auth-field-2));
  overflow: hidden;
}

.field input {
  width: 100%;
  padding: 14px 44px 14px 14px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.field input::placeholder {
  color: rgba(167, 177, 201, 0.9);
}

.field-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: rgba(214, 176, 122, 0.9);
  opacity: 0.9;
}

.toggle-pass {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 16, 28, 0.55);
  color: var(--accent-3);
  cursor: pointer;
}

.auth-primary {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, rgba(240, 214, 176, 0.9), rgba(196, 138, 68, 0.9) 60%, rgba(122, 78, 35, 0.95));
  color: #2c1b0c;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.5);
  filter: brightness(1.05);
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.auth-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.auth-row input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #c79a5e;
}

.auth-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 10px 0 6px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.auth-links a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
}

.auth-links a:hover {
  color: var(--text);
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 10px 0 8px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-social {
  display: grid;
  gap: 10px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 16, 28, 0.6);
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.social-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(77, 110, 180, 0.95);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: white;
}

.auth-error {
  display: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 120, 120, 0.25);
  background: rgba(90, 20, 20, 0.25);
  color: rgba(255, 210, 210, 0.95);
  padding: 10px 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.auth-error.show {
  display: block;
}

.auth-session {
  border-radius: 12px;
  border: 1px solid rgba(214, 176, 122, 0.22);
  background: rgba(20, 26, 42, 0.55);
  color: rgba(240, 214, 176, 0.95);
  padding: 10px 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.auth-bottom {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.auth-progress {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.auth-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #c79a5e, #f0d6b0);
  box-shadow: 0 0 12px rgba(214, 176, 122, 0.4);
}

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

  .auth-left {
    min-height: 380px;
  }
}

@media (max-width: 768px) {
  .auth-left-content {
    left: 18px;
    right: 18px;
  }

  .auth-logo {
    font-size: 34px;
  }

  .auth-links {
    flex-wrap: wrap;
  }
}
