:root {
  --asvr-red: #d72638;
  --asvr-red-dark: #b91f2f;
  --asvr-gold: #d4a63a;
  --ink: #111827;
  --ink-soft: #1f2937;
  --panel: #ffffff;
  --line: #e5e7eb;
  --muted: #6b7280;
  --bg: #f5f7fb;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 1.08fr) minmax(360px, 0.92fr);
}

.login-hero {
  position: relative;
  overflow: hidden;
  padding: 48px clamp(28px, 4vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 78% 22%, rgba(215, 38, 56, 0.22), transparent 28%),
    linear-gradient(120deg, #0b1220 0%, #111827 44%, #191f2d 100%);
  color: #fff;
}

.login-hero::before {
  content: "ASVR";
  position: absolute;
  right: 36px;
  bottom: 12px;
  font-size: clamp(5rem, 18vw, 12rem);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(255,255,255,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 34px rgba(0,0,0,0.2);
}

.brand-badge img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-copy strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-copy span {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.hero-content {
  max-width: 640px;
  padding: 30px 0;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--asvr-gold);
}

.hero-title {
  margin: 0;
  font-size: clamp(3rem, 6.2vw, 5.7rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.hero-text {
  margin: 24px 0 0;
  max-width: 560px;
  color: rgba(255,255,255,0.78);
  font-size: 1.16rem;
  line-height: 1.7;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-point {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-footer {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.6);
  font-size: 0.94rem;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 28px;
  background: #fbfbfc;
}

.login-card {
  width: min(100%, 560px);
}

.card-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 46px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.08);
}

.form-eyebrow {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--asvr-gold);
}

.form-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.form-subtitle {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.error-message {
  display: none;
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(215, 38, 56, 0.22);
  background: rgba(215, 38, 56, 0.08);
  color: #9f1239;
  font-size: 0.95rem;
  font-weight: 700;
}

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

.login-form {
  margin-top: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  margin-bottom: 9px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}

.form-input {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid #d7dce5;
  background: #fffef3;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-input::placeholder {
  color: #9ca3af;
  font-weight: 600;
}

.form-input:focus {
  border-color: var(--asvr-red);
  box-shadow: 0 0 0 4px rgba(215, 38, 56, 0.12);
  background: #fff;
}

.primary-button {
  width: 100%;
  margin-top: 10px;
  height: 60px;
  border: none;
  border-radius: 16px;
  background: #121212;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--asvr-red);
}

.primary-button:disabled {
  opacity: 0.75;
  cursor: wait;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
}

.secondary-link:hover {
  color: var(--ink);
}

.helper-box {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.helper-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.94rem;
}

.helper-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

@media (max-width: 1080px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-hero {
    min-height: 44vh;
  }

  .login-panel {
    padding-top: 20px;
  }
}

@media (max-width: 640px) {
  .login-hero {
    padding: 28px 20px 36px;
  }

  .login-panel {
    padding: 20px 16px 32px;
  }

  .card-wrap {
    border-radius: 22px;
    padding: 24px 20px;
  }

  .hero-title {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .brand-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .brand-copy strong {
    font-size: 1.25rem;
  }
}
