/* ============================================================
   PILOTAGENDA — login.css
   Login page specific styles
   ============================================================ */

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ── Left Panel (brand) ── */
.login-brand {
  background: var(--black-soft);
  border-right: 1px solid var(--black-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

/* Decorative grid lines */
.login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(254, 229, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(254, 229, 0, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Speed stripe decoration */
.login-brand::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
}

.brand-top {
  position: relative;
  z-index: 1;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-logo-icon {
  width: 48px;
  height: 48px;
  background: var(--yellow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-logo-icon svg {
  width: 28px;
  height: 28px;
}
.brand-logo-text {
  display: flex;
  flex-direction: column;
}
.brand-logo-name {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.12em;
}
.brand-logo-sub {
  font-size: 10px;
  font-family: var(--font-sub);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-muted);
}

.brand-middle {
  position: relative;
  z-index: 1;
}
.brand-headline {
  font-family: var(--font-display);
  font-size: 68px;
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.brand-headline span {
  color: var(--yellow);
}
.brand-desc {
  font-size: 14px;
  color: var(--white-muted);
  line-height: 1.7;
  max-width: 340px;
}

.brand-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 32px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--yellow);
}
.stat-label {
  font-size: 11px;
  color: var(--white-muted);
  font-family: var(--font-sub);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Right Panel (form) ── */
.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.login-form-container {
  width: 100%;
  max-width: 380px;
}

.login-form-header {
  margin-bottom: 36px;
}
.login-form-header h2 {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.login-form-header p {
  color: var(--white-muted);
  font-size: 14px;
}

/* Role selector */
.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}
.role-option {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
  padding: 14px 12px;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-align: center;
}
.role-option:hover {
  border-color: var(--white-dim);
}
.role-option.active {
  border-color: var(--yellow);
  background: rgba(254, 229, 0, 0.05);
}
.role-icon {
  font-size: 22px;
  margin-bottom: 6px;
}
.role-name {
  font-family: var(--font-sub);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-muted);
}
.role-option.active .role-name {
  color: var(--yellow);
}

/* Login button */
.btn-login {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 14px;
  margin-top: 8px;
}

/* Credential hints */
.credential-hint {
  margin-top: 24px;
  padding: 14px;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--white-muted);
}
.credential-hint strong {
  color: var(--white);
  font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-brand {
    display: none;
  }
  .login-form-panel {
    padding: 32px 24px;
    align-items: flex-start;
  }
  .login-form-container {
    max-width: 100%;
  }
}
