:root {
  --brand-primary: #1c4595;
  --brand-secondary: #2f73ff;
  --brand-accent: #ff8a5c;
  --neutral-900: #0d1b2a;
  --neutral-600: #3c4a69;
  --neutral-200: #dbe2ef;
  --neutral-50: #ffffff;
  --radius-lg: 32px;
  --radius-md: 18px;
  --shadow-lg: 0 40px 80px rgba(13, 27, 42, 0.18);
}

* {
  box-sizing: border-box;
}

body.auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  background: linear-gradient(140deg, rgba(47, 115, 255, 0.16), rgba(28, 69, 149, 0.08)),
    radial-gradient(circle at top right, rgba(28, 69, 149, 0.18), rgba(28, 69, 149, 0));
  color: var(--neutral-900);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vw, 72px);
}

.auth-shell {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  background: var(--neutral-50);
  border-radius: clamp(20px, 4vw, 32px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.auth-panel {
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.auth-panel--brand {
  background: linear-gradient(180deg, rgba(13, 27, 42, 0.94), rgba(28, 69, 149, 0.82));
  color: rgba(255, 255, 255, 0.94);
  position: relative;
}

.auth-panel--brand::after {
  content: '';
  position: absolute;
  inset: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  opacity: 0.4;
}

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

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-brand-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin: 0;
}

.auth-brand-list {
  margin: 0;
  padding-left: 20px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}

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

.auth-form-card h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.auth-form-card p {
  margin: 0;
  color: var(--neutral-600);
}

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

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

.auth-field label {
  font-weight: 600;
}

.auth-field input {
  padding: 14px 16px;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input:focus {
  border-color: var(--brand-secondary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(47, 115, 255, 0.18);
}

.auth-error {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(230, 57, 70, 0.08);
  color: #c1121f;
  border: 1px solid rgba(230, 57, 70, 0.28);
  font-size: 0.95rem;
}

.auth-submit {
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--neutral-50);
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(28, 69, 149, 0.24);
}

.auth-support {
  font-size: 0.9rem;
  color: var(--neutral-600);
}

.auth-support a {
  color: inherit;
  font-weight: 600;
}

.auth-meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 860px) {
  body.auth-body {
    padding: 32px 16px;
  }

  .auth-shell {
    box-shadow: none;
  }

  .auth-panel--brand {
    display: none;
  }

  .auth-panel {
    padding: 32px 20px;
  }
}
