/* ═══════════════════════════════════════════════
   FiveM CAD — Login page styles
   ═══════════════════════════════════════════════ */

/* Hide scrollbar on the login/landing page */
::-webkit-scrollbar { width: 0; }
* { scrollbar-width: none; }

html, body {
  min-height: 100%; background: var(--bg); color: var(--text);
  font-family: var(--sans);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}

/* ── Card wrapper ── */
.page-wrap {
  display: flex; width: 920px; max-width: 100%; min-height: 560px;
  border: 1px solid var(--border2);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}

/* ── Brand panel ── */
.brand-panel {
  width: 300px; flex-shrink: 0;
  background: #111827; border-right: 1px solid var(--border2);
  padding: 48px 36px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.brand-panel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent);
}
.brand-logo { font-size: 26px; font-weight: 700; color: #fff; letter-spacing: -0.01em; line-height: 1.1; }
.brand-logo span { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #60a5fa; margin-top: 8px; }
.brand-feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.brand-feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #94a3b8; line-height: 1.4; }
.brand-feature-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #3b82f6; flex-shrink: 0; margin-top: 5px; }
.brand-footer { font-size: 12px; color: #4a5568; line-height: 1.6; }
.brand-footer strong { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #3b82f6; margin-bottom: 4px; }
.brand-shield { width: 52px; height: 52px; margin-bottom: 20px; }

/* ── Form panel ── */
.form-panel {
  flex: 1; background: var(--panel); padding: 52px 48px;
  display: flex; flex-direction: column; justify-content: center; min-width: 0;
}
.form-title    { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.form-subtitle { font-size: 14px; color: var(--text-dim); margin-bottom: 32px; line-height: 1.5; }

.alert { padding: 12px 14px; border-radius: 4px; font-size: 13px; margin-bottom: 20px; display: none; border: 1px solid; line-height: 1.5; }
.alert.error   { border-color: var(--red);   color: #f87171; background: var(--red-soft); }
.alert.success { border-color: var(--green); color: #4ade80; background: var(--green-soft); }
.alert.show    { display: block; }

.btn-discord {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; height: 46px; background: var(--discord); border: none; border-radius: 6px;
  color: #fff; font-family: var(--sans); font-size: 15px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: background 0.15s, transform 0.1s;
  margin-bottom: 24px;
}
.btn-discord:hover  { background: var(--discord-h); }
.btn-discord:active { transform: scale(0.99); }

.divider { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border2); }
.divider span { font-size: 12px; font-weight: 500; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }

.input-group { display: flex; gap: 8px; margin-bottom: 8px; }
.code-input {
  flex: 1; min-width: 0; height: 42px; padding: 0 14px;
  background: var(--raised); border: 1px solid var(--border2); border-radius: 6px;
  color: var(--text); font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em;
  outline: none; text-transform: uppercase; transition: border-color 0.15s, box-shadow 0.15s;
}
.code-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.code-input::placeholder { color: var(--text-faint); text-transform: none; letter-spacing: 0; font-size: 13px; font-family: var(--sans); }
.btn-go {
  height: 42px; padding: 0 20px; background: var(--accent); border: none; border-radius: 6px;
  color: #fff; font-family: var(--sans); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background 0.15s; white-space: nowrap; flex-shrink: 0;
}
.btn-go:hover    { background: var(--accent-h); }
.btn-go:disabled { opacity: 0.5; cursor: not-allowed; }
.input-hint { font-size: 12px; color: var(--text-faint); margin-bottom: 24px; }

.status-row { display: flex; align-items: center; gap: 8px; margin-top: 24px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); flex-shrink: 0; transition: background 0.3s; }
.status-dot.online  { background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,0.2); }
.status-dot.offline { background: #f87171; }
.status-text { font-size: 12px; color: var(--text-faint); }
#clock { font-family: var(--mono); font-size: 12px; color: var(--text-faint); margin-left: auto; }

.watermark { position: fixed; bottom: 12px; right: 16px; font-size: 10px; color: #1e2a38; font-family: var(--mono); pointer-events: none; }

/* ══════════════════════════════════════════
   RESPONSIVE: ≤ 768px — stack vertically
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  html, body { align-items: flex-start; padding: 0; }

  .page-wrap {
    flex-direction: column; width: 100%; min-height: 100dvh;
    border: none; box-shadow: none;
  }

  /* Brand panel → slim top bar */
  .brand-panel {
    width: 100%; padding: 16px 20px;
    flex-direction: row; align-items: center;
    justify-content: space-between;
    min-height: auto;
    border-right: none; border-bottom: 1px solid var(--border2);
  }
  .brand-shield       { width: 32px; height: 32px; margin-bottom: 0; }
  .brand-logo         { font-size: 17px; }
  .brand-logo span    { display: none; }
  .brand-feature-list { display: none; }
  .brand-footer       { display: none; }

  /* Form fills remaining space */
  .form-panel    { flex: 1; padding: 32px 24px; justify-content: flex-start; }
  .form-subtitle { margin-bottom: 24px; }
  #clock         { display: none; }
  .watermark     { display: none; }
}

/* ══════════════════════════════════════════
   RESPONSIVE: ≤ 420px — tiny phones
   ══════════════════════════════════════════ */
@media (max-width: 420px) {
  .form-panel  { padding: 24px 16px; }
  .form-title  { font-size: 18px; }
  .btn-discord { font-size: 14px; height: 44px; }
  .input-group { flex-direction: column; }
  .code-input  { height: 44px; }
  .btn-go      { width: 100%; height: 44px; }
  .divider span { font-size: 11px; }
}
