/* ─── Login: standalone, không sidebar ─── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0; min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #05070e;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  color: #e8edf5;
  /* chỉ chặn tràn NGANG (hiệu ứng nền); dọc phải cuộn được – trang Đăng ký dài hơn màn hình (Owner 19/10: không cuộn xuống được) */
  position: relative; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Nền động: lưới kỹ thuật số */
.login-scene {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.login-grid {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(232,176,79,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 75%, rgba(70,224,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(123,147,255,0.06) 0%, transparent 70%),
    linear-gradient(180deg, #05070e 0%, #0d1117 50%, #05070e 100%);
}
.login-glow {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle 2px at 15% 25%, rgba(232,176,79,0.5) 0%, transparent 100%),
    radial-gradient(circle 1.5px at 85% 15%, rgba(255,106,69,0.4) 0%, transparent 100%),
    radial-gradient(circle 2px at 70% 80%, rgba(70,224,255,0.4) 0%, transparent 100%),
    radial-gradient(circle 1px at 30% 70%, rgba(232,176,79,0.35) 0%, transparent 100%),
    radial-gradient(circle 1.5px at 55% 40%, rgba(123,147,255,0.4) 0%, transparent 100%),
    radial-gradient(circle 1px at 90% 55%, rgba(88,214,141,0.35) 0%, transparent 100%),
    radial-gradient(circle 2px at 10% 60%, rgba(70,224,255,0.35) 0%, transparent 100%),
    radial-gradient(circle 1px at 45% 90%, rgba(232,176,79,0.4) 0%, transparent 100%);
  animation: floatParticles 22s ease-in-out infinite alternate;
}
@keyframes floatParticles {
  0%   { transform: translateY(0) scale(1); }
  33%  { transform: translateY(-18px) scale(1.04); }
  66%  { transform: translateY(10px) scale(0.97); }
  100% { transform: translateY(-14px) scale(1.02); }
}

/* Thẻ đăng nhập */
.login-wrap {
  position: relative; z-index: 1;
  width: min(420px, 92vw);
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-card {
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid rgba(232,176,79,0.15);
  border-radius: 24px;
  padding: 40px 36px 32px;
  box-shadow:
    0 25px 60px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 0 40px rgba(232,176,79,0.06);
  backdrop-filter: blur(16px);
}

/* Logo */
.login-brand {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin-bottom: 28px; text-align: center;
}
.login-logo {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, #e8b04f 0%, #ff6a45 100%);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(232,176,79,0.4), 0 0 0 1px rgba(255,255,255,0.1) inset;
  animation: glow-pulse 3s ease-in-out infinite;
}
.login-logo svg { width: 38px; height: 38px; color: #fff; }
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(232,176,79,0.35), 0 0 0 1px rgba(255,255,255,0.1) inset; }
  50%       { box-shadow: 0 8px 40px rgba(232,176,79,0.6), 0 0 0 1px rgba(255,255,255,0.15) inset; }
}
.login-brand-text { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.login-brand-name {
  font-size: 1.8rem; font-weight: 900; letter-spacing: 0.06em;
  background: linear-gradient(135deg, #e8b04f 0%, #ff6a45 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.login-brand-tagline {
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
  letter-spacing: 0.03em; font-weight: 400;
}

/* Thông báo */
.login-alert {
  border-radius: 12px; padding: 12px 16px; margin-bottom: 18px;
  font-size: 0.88rem; display: flex; align-items: flex-start; gap: 10px;
  animation: fadeInUp 0.3s ease both;
}
.login-alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.login-alert.bad {
  background: rgba(255,96,96,0.12); border: 1px solid rgba(255,96,96,0.35);
  color: #ff9090;
}
.login-alert.warn {
  background: rgba(240,192,80,0.12); border: 1px solid rgba(240,192,80,0.35);
  color: #f0c050;
}

/* Lời chào */
.login-greeting {
  text-align: center; margin-bottom: 22px;
  font-size: 0.88rem; color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* Form */
.login-form { display: flex; flex-direction: column; gap: 16px; }

.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-field label {
  font-size: 0.8rem; font-weight: 700;
  color: rgba(255,255,255,0.6); letter-spacing: 0.05em;
  text-transform: uppercase; display: block;
}
.login-input-wrap {
  position: relative; display: flex; align-items: center;
}
.login-field-icon {
  position: absolute; left: 14px;
  width: 17px; height: 17px;
  color: rgba(255,255,255,0.3); pointer-events: none; z-index: 1;
}
.login-input-wrap input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 12px; color: #e8edf5;
  font: inherit; font-size: 0.95rem;
  padding: 12px 14px 12px 44px;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  outline: none;
}
.login-input-wrap input:focus {
  border-color: #e8b04f;
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 0 3px rgba(232,176,79,0.18);
}
.login-input-wrap input::placeholder { color: rgba(255,255,255,0.22); }

/* Nút đăng nhập */
.login-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 20px; margin-top: 4px;
  background: linear-gradient(135deg, #e8b04f 0%, #ff6a45 100%);
  border: none; border-radius: 12px;
  color: #fff; font: inherit; font-weight: 700; font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(232,176,79,0.4);
  transition: transform 0.18s, box-shadow 0.18s;
  letter-spacing: 0.02em;
}
.login-btn svg { width: 18px; height: 18px; }
.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(232,176,79,0.55);
}
.login-btn:active { transform: translateY(0); }
.login-btn:focus-visible { outline: 2px solid #e8b04f; outline-offset: 3px; }

/* Footer */
.login-footer {
  position: relative; z-index: 1;
  text-align: center; margin-top: 20px;
  font-size: 0.75rem; color: rgba(255,255,255,0.2);
  line-height: 1.6;
}

/* QA 17/10: «Quyền riêng tư» không bị bẻ đôi qua hai dòng ở 390px */
.footer-note a { white-space: nowrap; }

/* 18/10 đồng ý lại điều khoản (consent.html) */
.consent-list { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; font-size: .92rem; line-height: 1.45; }
.consent-links { margin: 0 0 14px; font-size: .85rem; opacity: .85; }
