/* ═══════════════ LOGIN SCREEN ═══════════════ */
#screen-login {
  position: fixed; inset: 0; z-index: 500;
  display: flex;
  overflow: hidden;
}

.login-hero {
  flex: 1.1;
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, #16213e 45%, #1e2a4a 75%, var(--navy2) 100%);
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px 60px;
  color: #fff;
  overflow: hidden;
}
.login-hero::before, .login-hero::after {
  content: ''; position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.35), transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.login-hero::before { width: 480px; height: 480px; top: -160px; right: -140px; }
.login-hero::after {
  width: 380px; height: 380px; bottom: -140px; left: -100px;
  background: radial-gradient(circle, rgba(139,92,246,.28), transparent 70%);
}
.login-hero-inner { position: relative; z-index: 1; max-width: 460px; }
.login-hero-logo { width: 60px; height: 60px; border-radius: 16px; background: #fff; padding: 6px; object-fit: contain; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.login-hero h1 { font-size: 36px; font-weight: 800; margin-top: 28px; line-height: 1.2; letter-spacing: -.5px; }
.login-hero p.tagline { font-size: 15px; color: rgba(255,255,255,.72); margin-top: 14px; line-height: 1.7; }
.login-hero-features { margin-top: 42px; display: flex; flex-direction: column; gap: 18px; }
.login-hero-feature { display: flex; align-items: center; gap: 14px; font-size: 14px; color: rgba(255,255,255,.88); }
.login-hero-feature-icon {
  width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}

.login-form-panel {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  padding: 40px 24px;
  overflow-y: auto;
}
.login-card {
  width: 100%; max-width: 380px;
  background: var(--bg2);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: var(--shadow2);
  border: 1px solid var(--border);
}

@media (max-width: 900px) {
  #screen-login { flex-direction: column; }
  .login-hero { display: none; }
  .login-form-panel {
    flex: none; width: 100%; min-height: 100vh;
    background: linear-gradient(160deg, var(--navy) 0%, #1e2a4a 55%, var(--navy2) 100%);
  }
}

.login-logo-wrap { display: flex; flex-direction: column; align-items: center; margin-bottom: 22px; }
.login-logo-wrap img { width: 64px; height: 64px; border-radius: 16px; background: #fff; padding: 5px; object-fit: contain; }
.login-title { font-size: 19px; font-weight: 700; margin-top: 12px; color: var(--text); }
.login-sub { font-size: 12px; color: var(--text3); margin-top: 3px; text-align: center; }
.login-form-row { margin-bottom: 14px; }
.login-form-row label { font-size: 12px; font-weight: 600; color: var(--text2); display: block; margin-bottom: 5px; }
.login-form-row input {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border2);
  border-radius: 10px; font-size: 14px;
  background: var(--bg); color: var(--text);
  outline: none; transition: border .15s;
}
.login-form-row input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.btn-login {
  width: 100%; padding: 12px;
  background: var(--blue); color: #fff;
  border: none; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; margin-top: 4px;
  transition: background .15s;
}
.btn-login:hover { background: #2563eb; }
.btn-guest {
  width: 100%; padding: 11px;
  background: transparent; color: var(--text2);
  border: 1px solid var(--border2); border-radius: 10px;
  font-size: 13px; font-weight: 500;
  cursor: pointer; margin-top: 10px;
  transition: background .15s;
}
.btn-guest:hover { background: var(--bg); }
.login-footer-note {
  font-size: 10.5px; color: var(--text3);
  text-align: center; margin-top: 18px; line-height: 1.6;
}
.login-lang-row { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.login-lang-btn {
  font-size: 11px; font-weight: 600; padding: 4px 10px;
  border-radius: 20px; border: 1px solid var(--border2);
  background: var(--bg); color: var(--text2); cursor: pointer;
}
.login-lang-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

.auth-mode-toggle {
  display: flex; background: var(--bg); border-radius: 10px; padding: 3px; margin-bottom: 18px;
}
.auth-mode-btn {
  flex: 1; text-align: center; padding: 8px 4px; border-radius: 8px; font-size: 12.5px; font-weight: 600;
  color: var(--text2); cursor: pointer; transition: all .15s;
}
.auth-mode-btn.active { background: var(--bg2); color: var(--text); box-shadow: var(--shadow); }

.google-btn-wrap { width: 100%; margin-bottom: 14px; overflow: hidden; }
.btn-google {
  width: 100%; max-width: 100%; box-sizing: border-box;
  padding: 12px 16px; background: var(--bg2); color: var(--text);
  border: 1px solid var(--border2); border-radius: 999px;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .15s;
}
.btn-google:hover { background: var(--bg); }
.btn-google svg { width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; }
.btn-google .ti { font-size: 18px; }
#google-signin-container { display: flex; justify-content: center; }
#google-signin-container > div { max-width: 100%; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background: var(--border); }
.auth-divider span { font-size: 11px; color: var(--text3); font-weight: 500; white-space: nowrap; }

.login-check-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 14px; }
.login-check-row input[type="checkbox"] { margin-top: 2px; width: 15px; height: 15px; flex-shrink: 0; accent-color: var(--blue); cursor: pointer; }
.login-check-row label { font-size: 11.5px; color: var(--text2); line-height: 1.5; cursor: pointer; }
.login-check-row a { color: var(--blue); font-weight: 600; cursor: pointer; }

.auth-switch-row { text-align: center; font-size: 12.5px; color: var(--text2); margin-top: 14px; }
.auth-switch-row a { color: var(--blue); font-weight: 600; cursor: pointer; }

.legal-links-row { text-align: center; font-size: 11px; color: var(--text3); margin-top: 12px; }
.legal-links-row a { color: var(--text2); font-weight: 600; cursor: pointer; text-decoration: underline; }
.legal-links-row .sep { margin: 0 6px; }

.google-consent-note {
  font-size: 11px; color: var(--text3); text-align: center; line-height: 1.6; margin-top: 4px;
}
.google-consent-note a { color: var(--blue); font-weight: 600; cursor: pointer; }

.lang-dropdown-wrap { position: relative; display: flex; justify-content: center; margin-top: 18px; }
.lang-dropdown-trigger {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 20px;
  border: 1px solid var(--border2); background: var(--bg); color: var(--text2);
  font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.lang-dropdown-trigger:hover { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }
.lang-dropdown-trigger i { font-size: 15px; }
.lang-dropdown-chevron { transition: transform .2s; font-size: 13px !important; }
.lang-dropdown-wrap.open .lang-dropdown-chevron { transform: rotate(180deg); }
.lang-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-6px);
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow2);
  min-width: 190px; padding: 6px; opacity: 0; pointer-events: none; transition: all .18s ease; z-index: 30;
}
.lang-dropdown-wrap.open .lang-dropdown-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.lang-dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--text); cursor: pointer; transition: background .12s;
}
.lang-dropdown-item:hover { background: var(--bg); }
.lang-dropdown-item.active { background: var(--blue-light); color: var(--blue); font-weight: 700; }
.lang-flag { font-size: 16px; }
.lang-check { margin-left: auto; font-size: 14px; opacity: 0; color: var(--blue); }
.lang-dropdown-item.active .lang-check { opacity: 1; }


