﻿@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --q-accent:      #F0C040;
  --q-accent-dark: #C9992A;
  --q-bg:          #080611;
  --q-surface:     #0F0D1C;
  --q-border:      rgba(240,192,64,.14);
  --q-text:        #F1EEF9;
  --q-text-muted:  #8A8399;
  --q-radius:      12px;
  --q-font:        'Sora', sans-serif;
  --q-mono:        'IBM Plex Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--q-font);
  background: var(--q-bg);
  color: var(--q-text);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

a { color: var(--q-accent); text-decoration: none; }
a:hover { color: var(--q-accent-dark); }

/* ── Split layout ── */
.q-auth-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ── Brand panel (left) ── */
.q-auth-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 48px 52px;
  background:
    radial-gradient(ellipse 70% 60% at 25% 40%, rgba(124,58,237,.22) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 10%, rgba(240,192,64,.1)  0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(59,130,246,.1)  0%, transparent 55%),
    linear-gradient(160deg, #0C091C 0%, #090715 100%);
}
.q-auth-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240,192,64,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,192,64,.028) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.q-auth-brand::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,192,64,.07) 0%, transparent 70%);
  bottom: -180px;
  left: -120px;
  pointer-events: none;
}

.q-brand-logo { position: relative; z-index: 1; margin-bottom: auto; }
.q-logo { font-size: 24px; font-weight: 700; color: #fff; letter-spacing: -.5px; }
.q-logo span { color: var(--q-accent); }
.q-logo--lg { font-size: 28px; }

.q-brand-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
}
.q-brand-body h2 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: -.6px;
}
.q-brand-body h2 span {
  background: linear-gradient(135deg, #F0C040, #FFB800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.q-brand-body p {
  color: rgba(241,238,249,.55);
  font-size: 15px;
  margin: 0 0 32px;
  max-width: 340px;
  line-height: 1.75;
}
.q-brand-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.q-brand-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(241,238,249,.75);
}
.q-brand-features li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: rgba(240,192,64,.15);
  border: 1px solid rgba(240,192,64,.3);
  border-radius: 50%;
  color: var(--q-accent);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.q-brand-foot {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: rgba(241,238,249,.32);
  letter-spacing: .3px;
}

/* ── Form panel (right) ── */
.q-auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 52px;
  background: var(--q-bg);
  position: relative;
}
.q-auth-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(240,192,64,.05) 0%, transparent 60%);
  pointer-events: none;
}
.q-auth-card {
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
}
.q-auth-logo { margin-bottom: 32px; }
.q-auth-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--q-text);
  letter-spacing: -.4px;
}
.q-auth-subtitle {
  font-size: 14px;
  color: var(--q-text-muted);
  margin-bottom: 32px;
}

.q-form-group { margin-bottom: 20px; }
.q-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(241,238,249,.8);
  margin-bottom: 7px;
}
.q-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--q-radius);
  font-family: var(--q-font);
  font-size: 14px;
  color: var(--q-text);
  background: rgba(255,255,255,.04);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.q-input:focus {
  border-color: var(--q-accent);
  box-shadow: 0 0 0 3px rgba(240,192,64,.1);
  background: rgba(255,255,255,.06);
}
.q-input::placeholder { color: rgba(138,131,153,.6); }

.btn-q-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #F0C040 0%, #D4A017 100%);
  color: #08060E;
  border: none;
  padding: 13px 22px;
  border-radius: var(--q-radius);
  font-family: var(--q-font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 20px rgba(240,192,64,.28);
}
.btn-q-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(240,192,64,.45); color: #08060E; }

.w-100 { width: 100%; }
.mt-2  { margin-top: 0.5rem; }

/* ── Alerts ── */
.q-alert {
  padding: 12px 16px;
  border-radius: var(--q-radius);
  font-size: 14px;
  margin-bottom: 18px;
  display: none;
}
.q-alert.show       { display: block; }
.q-alert-error,
.q-alert--error     { background: rgba(248,113,113,.1); color: #F87171; border: 1px solid rgba(248,113,113,.25); display: block; }
.q-alert-success,
.q-alert--success   { background: rgba(52,211,153,.1);  color: #34D399; border: 1px solid rgba(52,211,153,.25); display: block; }
.q-alert-info,
.q-alert--info      { background: rgba(240,192,64,.1);  color: #F0C040; border: 1px solid rgba(240,192,64,.25); display: block; }

.q-spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.2);
  border-top-color: #08060E;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.q-auth-footer-text {
  text-align: center;
  font-size: 13px;
  color: var(--q-text-muted);
  margin-top: 22px;
}
.q-auth-link { text-align: center; margin-top: 14px; }
.q-link-muted { font-size: 13px; color: var(--q-text-muted); }
.q-link-muted:hover { color: var(--q-accent); }

/* ── Divider ── */
.q-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--q-text-muted);
  font-size: 12px;
}
.q-divider::before, .q-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.08);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .q-auth-split { grid-template-columns: 1fr; }
  .q-auth-brand { display: none; }
  .q-auth-main { padding: 48px 32px; min-height: 100vh; }
}
@media (max-width: 480px) {
  .q-auth-main { padding: 40px 20px; }
  .q-auth-card { max-width: 100%; }
}