:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2234;
  --accent: #00d4aa;
  --accent-dark: #00b894;
  --accent-glow: rgba(0, 212, 170, 0.25);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(148, 163, 184, 0.12);
  --danger: #ef4444;
  --success: #22c55e;
  --radius: 16px;
}


/* =========================
   RESET
========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* =========================
   BODY
========================== */

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  position: relative;

  overflow-x: hidden;
}


/* =========================
   BACKGROUND GRID
========================== */

.bg-grid {
  position: fixed;
  inset: 0;

  background-image:
    linear-gradient(
      rgba(0, 212, 170, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(0, 212, 170, 0.03) 1px,
      transparent 1px
    );

  background-size: 60px 60px;

  pointer-events: none;

  z-index: 0;
}


/* =========================
   BACKGROUND GLOW
========================== */

.bg-glow {
  position: fixed;

  width: 500px;
  height: 500px;

  border-radius: 50%;

  filter: blur(120px);

  opacity: 0.15;

  pointer-events: none;

  z-index: 0;
}


.bg-glow-1 {
  top: -150px;
  left: -100px;

  background: var(--accent);
}


.bg-glow-2 {
  bottom: -100px;
  right: -100px;

  background: #6366f1;
}


/* =========================
   AUTH CONTAINER
========================== */

.auth-container {
  position: relative;

  z-index: 1;

  width: 100%;

  max-width: 440px;
}


/* =========================
   AUTH CARD
========================== */

.auth-card {
  background: var(--bg-card);

  border: 1px solid var(--border);

  border-radius: 20px;

  padding: 40px 36px;

  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5);
}


/* =========================
   LOGO
========================== */

.auth-logo {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  margin-bottom: 28px;

  text-decoration: none;

  color: var(--text-primary);

  font-family: 'Space Grotesk', sans-serif;

  font-weight: 700;

  font-size: 1.4rem;
}


.logo-icon {
  width: 40px;
  height: 40px;

  background:
    linear-gradient(
      135deg,
      var(--accent),
      #6366f1
    );

  border-radius: 10px;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 1.2rem;

  color: #fff;
}


/* =========================
   TITLE
========================== */

.auth-title {
  font-family: 'Space Grotesk', sans-serif;

  font-size: 1.7rem;

  font-weight: 700;

  text-align: center;

  margin-bottom: 8px;
}


.auth-subtitle {
  text-align: center;

  color: var(--text-secondary);

  font-size: 0.95rem;

  margin-bottom: 32px;
}


/* =========================
   FORM
========================== */

.form-group {
  margin-bottom: 20px;
}


.form-group label {
  display: block;

  font-size: 0.9rem;

  font-weight: 500;

  color: var(--text-secondary);

  margin-bottom: 8px;
}


.form-group input {
  width: 100%;

  padding: 14px 16px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid var(--border);

  border-radius: 12px;

  color: var(--text-primary);

  font-size: 1rem;

  font-family: inherit;

  transition: all 0.25s ease;
}


.form-group input:focus {
  outline: none;

  border-color: var(--accent);

  box-shadow:
    0 0 0 3px var(--accent-glow);
}


.form-group input::placeholder {
  color: var(--text-muted);
}


/* =========================
   SELECT (country dropdown)
========================== */

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  width: 100%;

  padding: 14px 40px 14px 16px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid var(--border);

  border-radius: 12px;

  color: var(--text-primary);

  font-size: 1rem;

  font-family: inherit;

  transition: all 0.25s ease;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  cursor: pointer;
}

.select-wrapper select:focus {
  outline: none;

  border-color: var(--accent);

  box-shadow:
    0 0 0 3px var(--accent-glow);
}

.select-wrapper select:invalid {
  color: var(--text-muted);
}

.select-wrapper select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.select-wrapper::after {
  content: '▾';

  position: absolute;

  right: 16px;

  top: 50%;

  transform: translateY(-50%);

  color: var(--text-muted);

  pointer-events: none;

  font-size: 0.9rem;
}


/* =========================
   PASSWORD
========================== */

.password-wrapper {
  position: relative;
}


.password-wrapper input {
  padding-right: 52px;
}


.toggle-password {
  position: absolute;

  right: 14px;

  top: 50%;

  transform: translateY(-50%);

  background: none;

  border: none;

  color: var(--text-muted);

  cursor: pointer;

  font-size: 1.1rem;

  padding: 4px;

  line-height: 1;
}


.toggle-password:hover {
  color: var(--text-primary);
}


/* =========================
   FORM OPTIONS
========================== */

.form-options {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 24px;

  font-size: 0.9rem;
}


.form-options a {
  color: var(--accent);

  text-decoration: none;
}


.form-options a:hover {
  text-decoration: underline;
}


.remember {
  display: flex;

  align-items: center;

  gap: 8px;

  color: var(--text-secondary);

  cursor: pointer;
}


.remember input {
  width: 16px;
  height: 16px;

  accent-color: var(--accent);
}


/* =========================
   BUTTONS
========================== */

.btn {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  width: 100%;

  padding: 14px 24px;

  border-radius: 12px;

  font-weight: 600;

  font-size: 1rem;

  cursor: pointer;

  border: none;

  transition: all 0.25s ease;

  font-family: inherit;
}


.btn-primary {
  background:
    linear-gradient(
      135deg,
      var(--accent),
      var(--accent-dark)
    );

  color: #0a0e17;

  box-shadow:
    0 4px 20px var(--accent-glow);
}


.btn-primary:hover {
  transform: translateY(-2px);

  box-shadow:
    0 8px 28px var(--accent-glow);
}


.btn-primary:active {
  transform: translateY(0);
}


.btn-primary:disabled {
  opacity: 0.6;

  cursor: not-allowed;

  transform: none;

  box-shadow: none;
}


/* =========================
   FOOTER
========================== */

.auth-footer {
  text-align: center;

  margin-top: 28px;

  font-size: 0.95rem;

  color: var(--text-secondary);
}


.auth-footer a {
  color: var(--accent);

  text-decoration: none;

  font-weight: 600;
}


.auth-footer a:hover {
  text-decoration: underline;
}


/* =========================
   ALERTS
========================== */

.alert {
  padding: 12px 16px;

  border-radius: 10px;

  margin-bottom: 20px;

  font-size: 0.9rem;

  display: none;

  line-height: 1.5;
}


.alert.show {
  display: block;
}


.alert-error {
  background: rgba(239, 68, 68, 0.12);

  border: 1px solid rgba(239, 68, 68, 0.3);

  color: #f87171;
}


.alert-success {
  background: rgba(34, 197, 94, 0.12);

  border: 1px solid rgba(34, 197, 94, 0.3);

  color: #4ade80;
}


/* =========================
   ADMIN BADGE
========================== */

.admin-badge {
  display: inline-block;

  background: rgba(99, 102, 241, 0.15);

  color: #818cf8;

  font-size: 0.75rem;

  font-weight: 600;

  padding: 4px 10px;

  border-radius: 100px;

  margin-bottom: 16px;

  text-align: center;

  width: 100%;
}


/* =========================
   RESPONSIVE
========================== */

@media (max-width: 480px) {

  body {
    padding: 14px;
  }

  .auth-card {
    padding: 32px 24px;

    border-radius: 18px;
  }

  .auth-title {
    font-size: 1.5rem;
  }

}
/* ==========================================
   LANGUAGE SELECTOR
   Append this to auth.css (or any page's CSS).
========================================== */

.lang-selector-wrap {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 50;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.lang-btn:hover {
  border-color: var(--accent);
}

.lang-caret {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.lang-menu {
  list-style: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  display: none;
  padding: 6px;
}

/* Lock page scroll while language menu is open */
body.lang-menu-open {
  overflow: hidden;
}

.lang-menu.open {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.lang-flag {
  font-size: 1.1rem;
}

@media (max-width: 480px) {
  .lang-selector-wrap {
    top: 12px;
    right: 12px;
  }

  .lang-btn span:nth-child(2) {
    display: none; /* hide language name on very small screens, keep flag + caret */
  }
}