  :root {
    --luxury-gold: #38bdf8;
    --luxury-gold-muted: #0284c7;
    --bg-body: #090d16;
    --card-bg: #111827;
    --input-bg: #0f172a;
    --input-border: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-title: #ffffff;
    --header-title: #38bdf8;
    --error-bg: rgba(239, 68, 68, 0.15);
    --error-border: rgba(239, 68, 68, 0.3);
    --badge-bg: rgba(56, 189, 248, 0.1);
  }

  [data-theme="light"] {
    --luxury-gold: #0284c7;
    --luxury-gold-muted: #0369a1;
    --bg-body: #f1f5f9;
    --card-bg: #ffffff;
    --input-bg: #f8fafc;
    --input-border: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-title: #0f172a;
    --header-title: #0284c7;
    --error-bg: #fee2e2;
    --error-border: #fca5a5;
    --badge-bg: #e0f2fe;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Plus Jakarta Sans', sans-serif; -webkit-tap-highlight-color: transparent; transition: background 0.3s, color 0.3s, border-color 0.3s; }

  body {
    background: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
  }

  .wrapper {
    width: 100%;
    max-width: 440px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px 20px 24px;
  }

  .top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 10px;
  }
  .brand-block { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .brand-logo-circle {
    width: 42px; height: 42px; border-radius: 12px;
    background: linear-gradient(135deg, var(--luxury-gold), var(--luxury-gold-muted));
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: #0f172a; font-size: 16px;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
    flex-shrink: 0;
    overflow: hidden;
  }
  .brand-logo-circle img { width: 100%; height: 100%; object-fit: cover; }
  .brand-name { font-size: 19px; font-weight: 800; color: var(--text-title); letter-spacing: -0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .icon-btn {
    width: 38px; height: 38px; border-radius: 12px;
    background: var(--card-bg); border: 1px solid var(--input-border);
    color: var(--luxury-gold); display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 14px; text-decoration: none; flex-shrink: 0;
  }
  .icon-btn:active { transform: scale(0.92); }

  .lang-dropdown {
    display: flex; align-items: center; gap: 6px;
    background: var(--card-bg); border: 1px solid var(--input-border);
    border-radius: 12px; padding: 8px 12px;
    font-size: 11.5px; font-weight: 700; color: var(--text-main);
    cursor: pointer; white-space: nowrap; flex-shrink: 0;
  }
  .lang-dropdown svg { width: 10px; height: 10px; color: var(--text-muted); }

  .welcome-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 24px;
    line-height: 1.35;
  }
  .welcome-title span { color: var(--luxury-gold); }

  .login-container {
    background: var(--card-bg);
    border: 1px solid var(--input-border);
    border-radius: 22px;
    padding: 22px 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  }

  .login-error {
    display: none;
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: #ef4444;
    font-size: 11.5px;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 14px;
  }

  .input-group { margin-bottom: 14px; }
  .input-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }
  .custom-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 14px;
    padding: 12px 14px;
  }
  .custom-input-wrapper:focus-within { border-color: var(--luxury-gold); }
  .input-icon { color: var(--text-muted); font-size: 14px; flex-shrink: 0; }
  .country-code { font-size: 13px; font-weight: 700; color: var(--text-title); flex-shrink: 0; }
  .custom-input {
    flex: 1; min-width: 0; background: transparent; border: none; outline: none;
    color: var(--text-title); font-size: 14px; font-weight: 600;
  }
  .custom-input::placeholder { color: var(--text-muted); font-weight: 500; }
  .toggle-password { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 14px; flex-shrink: 0; }

  .options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 18px;
  }
  .remember-me { display: flex; align-items: center; gap: 8px; }
  .remember-me input[type="checkbox"] {
    width: 17px; height: 17px; accent-color: var(--luxury-gold); cursor: pointer;
  }
  .remember-me label { font-size: 12px; color: var(--text-muted); font-weight: 600; cursor: pointer; }
  .forgot-link { font-size: 12px; color: var(--luxury-gold); font-weight: 700; text-decoration: none; }

  .btn-login {
    width: 100%;
    padding: 15px;
    border-radius: 40px;
    border: none;
    background: linear-gradient(135deg, var(--luxury-gold), var(--luxury-gold-muted));
    color: #0f172a;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(56, 189, 248, 0.3);
    letter-spacing: 0.3px;
    margin-bottom: 10px;
  }
  .btn-login:active { transform: scale(0.98); }

  .btn-google {
    width: 100%;
    padding: 14px;
    border-radius: 40px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-title);
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
  }
  .btn-google:active { transform: scale(0.98); }
  .btn-google svg { width: 17px; height: 17px; }

  .bottom-register-text {
    text-align: center;
    margin-top: 20px;
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 600;
  }
  .bottom-register-text a { color: var(--luxury-gold); text-decoration: none; font-weight: 800; }

  .social-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 34px;
    flex-wrap: wrap;
  }
  .social-icon {
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--card-bg); border: 1px solid var(--input-border);
    color: var(--text-muted); display: flex; align-items: center; justify-content: center;
    font-size: 13px; text-decoration: none;
  }
  .social-icon:active { transform: scale(0.92); }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    margin-top: 18px;
    text-align: center;
  }
  .footer-links span {
    font-size: 10.5px;
    color: var(--text-muted);
    font-weight: 600;
  }

  .footer-meta {
    text-align: center;
    margin-top: 18px;
    padding-top: 14px;
    font-size: 9.5px;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.6;
  }
