*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0C0C0B;
  --bg-surface:   #111110;
  --text:         #F0EDE4;
  --text-muted:   rgba(240,237,228,0.45);
  --text-dim:     rgba(240,237,228,0.25);
  --border:       rgba(240,237,228,0.08);
  --border-mid:   rgba(240,237,228,0.12);
  --accent:       #C8F552;
  --accent-hover: #D4F76A;
  --accent-border:rgba(200,245,82,0.25);
  --dark-text:    #0C0C0B;
}

html, body {
  height: 100%;
  font-family: 'Onest', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}

.login-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 820px;
  min-height: 520px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-mid);
}

.panel-left {
  background: var(--bg-surface);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.panel-left::before {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,245,82,0.07) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  pointer-events: none;
}

.logo {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
}

.logo span { color: var(--accent); }

.panel-left-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.live-tag::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: cm-blink 1.5s ease-in-out infinite;
}

@keyframes cm-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.2; }
}

.panel-left h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.panel-left h2 em {
  font-style: normal;
  color: var(--accent);
}

.panel-left-sub {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.65;
  max-width: 280px;
  margin-bottom: 2.2rem;
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: var(--accent);
  min-width: 52px;
}

.stat-sep {
  width: 1px;
  height: 26px;
  background: var(--border);
  flex-shrink: 0;
}

.stat-label {
  font-size: 12px;
  color: rgba(240,237,228,0.4);
  font-weight: 300;
  line-height: 1.4;
}

.panel-footer {
  font-size: 11px;
  color: rgba(240,237,228,0.2);
  line-height: 1.6;
  position: relative;
}

.panel-right {
  background: var(--bg);
  padding: 2.5rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-header { margin-bottom: 1.8rem; }

.form-header h1 {
  font-family: 'Unbounded', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.form-header p {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 1rem;
}

.field label {
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(240,237,228,0.5);
}

.field input {
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.field input::placeholder { color: rgba(240,237,228,0.18); }

.field input:focus { border-color: rgba(200,245,82,0.45); }

.field .invalid-feedback {
  font-size: 12px;
  color: rgba(255, 157, 157, 0.95);
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.6rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.checkbox-input {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(240,237,228,0.2);
  background: var(--bg-surface);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}

.checkbox-input:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-input:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 8px;
  border: 2px solid var(--dark-text);
  border-top: none;
  border-left: none;
  transform: rotate(40deg);
}

.forgot-link {
  font-size: 12px;
  color: rgba(240,237,228,0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.forgot-link:hover { color: var(--accent); }

.btn-submit {
  font-family: 'Unbounded', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-text);
  background: var(--accent);
  border: none;
  padding: 0.95rem;
  border-radius: 100px;
  cursor: pointer;
  width: 100%;
  transition: transform 0.15s, background 0.2s;
  margin-bottom: 1.3rem;
}

.btn-submit:hover { transform: scale(1.02); background: var(--accent-hover); }
.btn-submit:active { transform: scale(0.99); }

.login-alerts {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 1000;
  max-width: 820px;
  margin: 0 auto;
}

@media (max-width: 620px) {
  body { padding: 0; align-items: stretch; }

  .login-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
    border: none;
  }

  .panel-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 2rem 1.5rem;
  }

  .panel-left-body { padding: 1.5rem 0; }

  .panel-left h2 { font-size: 22px; }

  .panel-left-sub, .stats-list { display: none; }

  .panel-footer { display: none; }

  .panel-right { padding: 2rem 1.5rem; }
}

