* { margin: 0; padding: 0; box-sizing: border-box; }

    :root {
      --bg-primary: #080808;
      --bg-card: #0e0e0e;
      --border-color: rgba(255, 255, 255, 0.08);
      --border-hover: rgba(255, 255, 255, 0.2);
      --text-primary: #ffffff;
      --text-secondary: #999999;
      --text-tertiary: #555555;
    }

    body.light-theme {
      --bg-primary: #f8fafc;
      --bg-card: #ffffff;
      --border-color: #e2e8f0;
      --border-hover: #cbd5e1;
      --text-primary: #0f172a;
      --text-secondary: #475569;
      --text-tertiary: #94a3b8;
    }

    body {
      background: var(--bg-primary);
      color: var(--text-primary);
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      transition: background-color 0.3s ease, color 0.3s ease;
      position: relative;
      overflow-x: hidden;
      padding: 2.5rem 1.5rem;
    }

    #bg {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      z-index: 0;
      pointer-events: none;
    }

    .back-btn {
      position: fixed;
      top: 1.5rem;
      left: 2rem;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--text-secondary);
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      transition: all 0.2s ease;
      z-index: 20;
      padding: 0.4rem 0.8rem;
      border-radius: 999px;
      border: 1px solid transparent;
    }

    .back-btn:hover {
      color: var(--text-primary);
      border-color: var(--border-color);
      background: rgba(255, 255, 255, 0.03);
    }

    .top-controls {
      position: fixed;
      top: 1.5rem;
      right: 2rem;
      z-index: 20;
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .theme-toggle {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: transparent;
      border: 1px solid var(--border-color);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: var(--text-secondary);
      transition: all 0.3s ease;
    }

    .theme-toggle:hover {
      border-color: var(--border-hover);
      color: var(--text-primary);
      transform: rotate(20deg);
    }

    .theme-toggle .sun-icon { display: none; }
    .theme-toggle .moon-icon { display: block; }
    body.light-theme .theme-toggle .sun-icon { display: block; }
    body.light-theme .theme-toggle .moon-icon { display: none; }

    .lang-switch {
      display: flex;
      align-items: center;
      gap: 0.2rem;
      font-size: 0.72rem;
      font-weight: 700;
      color: var(--text-tertiary);
    }
    .lang-switch button {
      background: none;
      border: none;
      cursor: pointer;
      color: var(--text-tertiary);
      font-weight: 700;
      font-size: 0.72rem;
      transition: color 0.2s;
    }
    .lang-switch button.active, .lang-switch button:hover {
      color: var(--text-primary);
    }

    /* Auth Box */
    .auth-container {
      position: relative;
      z-index: 10;
      width: 100%;
      max-width: 420px;
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 20px;
      padding: 2.5rem 2.2rem;
      box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
      text-align: center;
      animation: boxFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    body.light-theme .auth-container {
      box-shadow: 0 25px 70px rgba(0, 0, 0, 0.08);
      border-color: #e2e8f0;
    }

    @keyframes boxFadeUp {
      from { opacity: 0; transform: translateY(20px) scale(0.97); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .auth-brand-logo {
      width: 46px;
      height: 46px;
      object-fit: contain;
      margin: 0 auto 0.9rem;
      display: block;
      filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.15));
      transition: filter 0.3s ease;
    }

    body.light-theme .auth-brand-logo {
      filter: invert(1);
    }

    .auth-title {
      font-size: 1.45rem;
      font-weight: 800;
      letter-spacing: -0.02em;
      color: var(--text-primary);
      margin-bottom: 0.3rem;
    }

    .auth-sub {
      font-size: 0.82rem;
      color: var(--text-secondary);
      margin-bottom: 1.8rem;
    }

    .form-group {
      margin-bottom: 1rem;
      text-align: left;
    }

    .form-label {
      display: block;
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-secondary);
      margin-bottom: 0.45rem;
    }

    .form-input {
      width: 100%;
      padding: 0.85rem 1rem;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      color: var(--text-primary);
      font-size: 0.88rem;
      font-family: inherit;
      outline: none;
      transition: all 0.2s ease;
    }

    .form-input:focus {
      border-color: rgba(255, 255, 255, 0.4);
      background: rgba(255, 255, 255, 0.06);
      box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
    }

    body.light-theme .form-input {
      background: #f8fafc;
      border-color: #cbd5e1;
    }
    body.light-theme .form-input:focus {
      border-color: #0f172a;
      background: #ffffff;
      box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
    }

    /* ═══════════════════════════════════════════════════════════
       CYBER SECURITY CAPTCHA: "NO SOY UN ROBOT"
       ═══════════════════════════════════════════════════════════ */
    .robot-captcha-box {
      margin: 1.4rem 0 1.2rem;
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 0.85rem 1.1rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      user-select: none;
      cursor: pointer;
      transition: all 0.25s ease;
    }

    .robot-captcha-box:hover {
      border-color: var(--border-hover);
      background: rgba(255, 255, 255, 0.04);
    }

    body.light-theme .robot-captcha-box {
      background: #f8fafc;
      border-color: #e2e8f0;
    }

    .captcha-left {
      display: flex;
      align-items: center;
      gap: 0.85rem;
    }

    .captcha-checkbox {
      width: 24px;
      height: 24px;
      border-radius: 6px;
      border: 2px solid rgba(255, 255, 255, 0.2);
      background: rgba(0, 0, 0, 0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      position: relative;
    }

    body.light-theme .captcha-checkbox {
      border-color: #94a3b8;
      background: #ffffff;
    }

    .captcha-spinner {
      width: 14px;
      height: 14px;
      border: 2px solid transparent;
      border-top-color: #ffffff;
      border-radius: 50%;
      animation: captchaSpin 0.7s linear infinite;
      display: none;
    }

    @keyframes captchaSpin {
      to { transform: rotate(360deg); }
    }

    .captcha-check-icon {
      display: none;
      width: 15px;
      height: 15px;
      stroke: #22c55e;
      stroke-width: 3;
      stroke-linecap: round;
      stroke-linejoin: round;
      fill: none;
    }

    .robot-captcha-box.verified .captcha-checkbox {
      border-color: #22c55e;
      background: rgba(34, 197, 94, 0.15);
      box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
    }
    .robot-captcha-box.verified .captcha-check-icon {
      display: block;
      animation: checkPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes checkPop {
      0% { transform: scale(0); }
      70% { transform: scale(1.2); }
      100% { transform: scale(1); }
    }

    .robot-captcha-box.verifying .captcha-spinner {
      display: block;
    }

    .captcha-label {
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--text-primary);
    }

    .captcha-badge {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: right;
      opacity: 0.6;
    }

    .captcha-badge svg {
      width: 22px;
      height: 22px;
      color: var(--text-secondary);
    }

    .captcha-badge span {
      font-size: 0.55rem;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: var(--text-tertiary);
      margin-top: 2px;
    }

    /* Submit Button */
    .btn-submit {
      width: 100%;
      padding: 0.95rem;
      background: #ffffff;
      color: #080808;
      border: none;
      border-radius: 12px;
      font-size: 0.85rem;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
    }

    .btn-submit:hover {
      background: #e6e6e6;
      transform: translateY(-1px);
      box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
    }

    .btn-submit:active {
      transform: translateY(0);
    }

    body.light-theme .btn-submit {
      background: #0f172a;
      color: #ffffff;
      box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
    }
    body.light-theme .btn-submit:hover {
      background: #1e293b;
    }

    /* Message / Feedback */
    .auth-alert {
      margin-top: 1rem;
      padding: 0.75rem 1rem;
      border-radius: 10px;
      font-size: 0.8rem;
      font-weight: 500;
      display: none;
      text-align: center;
    }

    .auth-alert.error {
      display: block;
      background: rgba(239, 68, 68, 0.1);
      border: 1px solid rgba(239, 68, 68, 0.25);
      color: #ef4444;
    }

    .auth-alert.success {
      display: block;
      background: rgba(34, 197, 94, 0.1);
      border: 1px solid rgba(34, 197, 94, 0.25);
      color: #22c55e;
    }

    .auth-footer {
      margin-top: 1.5rem;
      font-size: 0.78rem;
      color: var(--text-secondary);
    }

    .auth-footer a {
      color: var(--text-primary);
      text-decoration: underline;
      font-weight: 600;
      margin-left: 0.25rem;
      transition: opacity 0.2s;
    }

    .auth-footer a:hover {
      opacity: 0.8;
    }
  
    /* === PIXEL-PERFECT NAVBAR ICONS FIX === */
    .theme-toggle,
    .btn-account,
    a.btn-account,
    .nav-links a.btn-account {
      width: 36px !important;
      height: 36px !important;
      min-width: 36px !important;
      max-width: 36px !important;
      min-height: 36px !important;
      max-height: 36px !important;
      padding: 0 !important;
      margin: 0 !important;
      border-radius: 50% !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      position: relative !important;
      box-sizing: border-box !important;
      background: rgba(255, 255, 255, 0.03) !important;
      border: 1px solid rgba(255, 255, 255, 0.1) !important;
      color: #888888 !important;
      text-decoration: none !important;
      cursor: pointer !important;
      overflow: hidden !important;
      line-height: 1 !important;
      vertical-align: middle !important;
      flex-shrink: 0 !important;
      transition: all 0.2s ease !important;
    }

    .theme-toggle:hover,
    .btn-account:hover,
    a.btn-account:hover,
    .nav-links a.btn-account:hover {
      background: rgba(255, 255, 255, 0.08) !important;
      border-color: rgba(255, 255, 255, 0.25) !important;
      color: #ffffff !important;
    }

    .theme-toggle svg,
    .btn-account svg,
    a.btn-account svg {
      width: 18px !important;
      height: 18px !important;
      display: block !important;
      margin: auto !important;
      padding: 0 !important;
      position: static !important;
      transform: none !important;
      stroke: currentColor !important;
      flex-shrink: 0 !important;
    }

    .theme-toggle .sun-icon { display: none !important; }
    .theme-toggle .moon-icon { display: block !important; }
    body.light-theme .theme-toggle .sun-icon { display: block !important; }
    body.light-theme .theme-toggle .moon-icon { display: none !important; }

    body.light-theme .theme-toggle,
    body.light-theme .btn-account,
    body.light-theme a.btn-account {
      background: #f1f5f9 !important;
      border-color: #cbd5e1 !important;
      color: #0f172a !important;
    }

    .nav-links {
      display: flex !important;
      align-items: center !important;
      gap: 0.65rem !important;
    }

    .nav-right {
      display: flex !important;
      align-items: center !important;
      gap: 0.65rem !important;
    }