/* ─── HONEYPOT (anti-bot) ─── */
.hp-field { position:absolute; left:-9999px; top:-9999px; height:0; width:0; overflow:hidden; opacity:0; pointer-events:none; }

/* ─── LOGIN PAGE ─── */
.login-page {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}
.login-page.hidden { display: none; }

.login-lang-toggle {
  position: absolute; top: 1.2rem; right: 1.5rem;
  display: inline-flex; align-items: center; gap: 4px;
  height: 36px; padding: 0 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-secondary); font-size: 12px; font-weight: 700;
  cursor: pointer; z-index: 1001;
  transition: background .2s, color .2s, border-color .2s;
}
.login-lang-toggle:hover { border-color: var(--accent); color: var(--accent); background: rgba(5,150,105,0.06); }

.login-center {
  display: flex; flex-direction: column; align-items: center;
  width: 100%; max-width: 400px;
  padding: 24px;
  transition: max-width 0.2s;
}
.login-center:has(.login-card--wide:not(.hidden)) {
  max-width: 720px;
}

.login-brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 36px;
}
.login-brand .logo-icon {
  width: 44px; height: 44px;
}
.login-brand .logo-text {
  font-size: 20px;
}
.login-brand .logo-sub {
  font-size: 10px;
}

.login-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.login-card-header { margin-bottom: 24px; text-align: center; }
.login-title { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.login-sub { font-size: 14px; color: var(--text3); }

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

.login-error {
  background: rgba(255,59,92,0.08);
  border: 1px solid rgba(255,59,92,0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--danger);
  display: none;
}
.login-error.visible { display: block; }

.login-success {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--accent2, #10b981);
}
.login-success.hidden { display: none; }

.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-label { font-size: 13px; font-weight: 600; color: var(--text2); }
.login-label .required { color: var(--danger); }
.login-input {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 14px;
  font-family: var(--sans); font-size: 14px; color: var(--text);
  outline: none; transition: border-color 0.15s;
}
.login-input:focus { border-color: var(--accent); }
.login-input::placeholder { color: var(--text3); }
.login-input.field-locked {
  opacity: 0.5; cursor: not-allowed;
  background: var(--surface1); border-style: dashed;
}

.login-btn {
  background: var(--accent); color: #000;
  border: none; border-radius: 8px;
  padding: 14px; font-family: var(--sans); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.15s;
  width: 100%;
}
.login-btn:hover { background: #047857; }
.login-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.login-row {
  display: flex; gap: 12px;
}
.login-field--half { flex: 1; }

.register-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px;
}
.register-col {
  display: flex; flex-direction: column; gap: 16px;
}

.login-footer {
  margin-top: 16px; text-align: center;
  font-size: 13px; color: var(--text3);
}
.login-footer a {
  color: var(--accent); font-weight: 600; text-decoration: none;
}
.login-footer a:hover { text-decoration: underline; }
.login-footer-sep { margin: 0 6px; color: var(--border); }

.login-loading { text-align: center; color: var(--text3); font-size: 13px; margin-top: 8px; }
.login-btn-layout { display: flex; align-items: center; justify-content: center; gap: 10px; }
.svg-no-shrink { flex-shrink: 0; }

/* ─── CGU CHECKBOX ─── */
.cgu-accept {
  grid-column: 1 / -1;
  padding: 12px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.cgu-checkbox-label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text2);
  cursor: pointer; line-height: 1.5;
}
.cgu-checkbox {
  margin-top: 3px; flex-shrink: 0;
  width: 16px; height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}
.cgu-link {
  color: var(--accent); font-weight: 600;
  text-decoration: none;
}
.cgu-link:hover { text-decoration: underline; }
.cgu-includes {
  font-size: 11px; color: var(--text3); font-style: italic;
}

/* ─── CGU MODAL ─── */
.modal--cgu {
  max-width: 740px; width: 95vw;
  max-height: 85vh; display: flex; flex-direction: column;
}
.cgu-modal-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border); margin-bottom: 0;
}
.cgu-modal-header h3 { margin: 0; font-size: 18px; font-weight: 800; }
.cgu-version {
  font-size: 11px; color: var(--text3); font-family: var(--mono);
  white-space: nowrap;
}
.cgu-modal-body {
  flex: 1; overflow-y: auto; padding: 20px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.cgu-section {
  margin-bottom: 24px;
}
.cgu-section h4 {
  font-size: 14px; font-weight: 700; color: var(--text);
  margin: 0 0 8px 0;
}
.cgu-section p {
  font-size: 13px; line-height: 1.7; color: var(--text2);
  margin: 0 0 8px 0;
}
.cgu-section ul {
  margin: 4px 0 8px 0; padding-left: 20px;
}
.cgu-section li {
  font-size: 13px; line-height: 1.7; color: var(--text2);
  margin-bottom: 4px;
}
.cgu-section--highlight {
  background: rgba(255,59,92,0.04);
  border: 1px solid rgba(255,59,92,0.15);
  border-radius: 10px;
  padding: 16px 18px;
}
.cgu-section--highlight h4 {
  color: var(--danger);
}
.cgu-section--highlight li strong,
.cgu-section--highlight p strong {
  color: var(--text);
}
