:root {
  --bg: #07111f;
  --bg-2: #0d1b2e;
  --card: rgba(12, 24, 42, 0.78);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #eef4ff;
  --muted: #a9b7cc;
  --primary: #4aa3ff;
  --primary-hover: #3395fa;
  --danger: #ff6b6b;
  --success: #2ec27e;
  --input: rgba(255, 255, 255, 0.06);
  --input-border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background: radial-gradient(circle at top left, #15325b 0%, var(--bg) 40%),
    linear-gradient(135deg, #07111f 0%, #091425 100%);
  color: var(--text);
}

body {
  position: relative;
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(74, 163, 255, 0.16), transparent 22%),
    radial-gradient(circle at 80% 15%, rgba(46, 194, 126, 0.12), transparent 18%),
    radial-gradient(circle at 70% 80%, rgba(126, 87, 194, 0.12), transparent 18%);
  filter: blur(12px);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  padding: 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.auth-left {
  padding: 24px 16px 24px 8px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 18px;
  backdrop-filter: blur(12px);
}

.auth-left h1 {
  margin: 0 0 14px;
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 650px;
}

.hero-text {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 560px;
}

.hero-card {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  max-width: 520px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #86c3ff);
  box-shadow: 0 0 0 8px rgba(74, 163, 255, 0.12);
  margin-top: 5px;
  flex-shrink: 0;
}

.auth-right {
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-card-top {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #8fc3ff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
}

.auth-card h2 {
  margin: 0 0 8px;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
}

.muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

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

.field label {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
}

.field input {
  width: 100%;
  height: 54px;
  border-radius: var(--radius-md);
  border: 1px solid var(--input-border);
  background: var(--input);
  color: var(--text);
  padding: 0 16px;
  font-size: 1rem;
  outline: none;
  transition: 0.2s ease;
}

.field input::placeholder {
  color: #7e90aa;
}

.field input:focus {
  border-color: rgba(74, 163, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(74, 163, 255, 0.12);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 78px;
}

.ghost-btn,
.link-btn,
.primary-btn {
  font: inherit;
  border: none;
  cursor: pointer;
}

.small-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(34, 34, 34, 0.966);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.small-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

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

.link-btn {
  background: transparent;
  color: #8fc3ff;
  padding: 0;
  font-weight: 600;
}

.link-btn:hover {
  color: #b2d8ff;
}

.primary-btn {
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), #2386eb);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 12px 24px rgba(35, 134, 235, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--primary-hover), #1f7dd9);
  box-shadow: 0 16px 28px rgba(35, 134, 235, 0.28);
}

.primary-btn:disabled,
.small-btn:disabled,
.link-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.message-box {
  border-radius: var(--radius-md);
  padding: 14px 15px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.message-box.success {
  background: rgba(46, 194, 126, 0.12);
  color: #baf2d4;
  border: 1px solid rgba(46, 194, 126, 0.25);
}

.message-box.error {
  background: rgba(255, 107, 107, 0.12);
  color: #ffd2d2;
  border: 1px solid rgba(255, 107, 107, 0.25);
}

.hidden {
  display: none;
}

.nav-notifications-link {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}

.notif-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff6b6b, #ff3b3b);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(255, 59, 59, 0.24);
}

.notif-badge.hidden {
  display: none;
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .auth-left {
    padding: 8px 4px 0;
  }

  .auth-left h1 {
    max-width: 100%;
  }

  .hero-text,
  .hero-card {
    max-width: 100%;
  }

  .auth-card {
    max-width: 100%;
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .auth-shell {
    padding: 14px;
  }

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

  .auth-left h1 {
    font-size: 2.1rem;
  }

  .field input,
  .primary-btn {
    height: 52px;
  }
}