/* ═══════════════════════════════════════════════════════════════
   CommPass CRM — Login Page
   ═══════════════════════════════════════════════════════════════ */

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.login-shell {
  display: grid;
  grid-template-columns: 420px 1fr;
  width: 100%;
  min-height: 100vh;
}

/* ── Left panel ── */
.login-card {
  background: var(--surface-1);
  border-right: 1px solid var(--border-subtle);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
}

/* ── Brand ── */
.login-brand {
  display: flex;
  align-items: flex-start;
}

.login-brand-logo {
  width: 200px;
  height: auto;
  display: block;
  border-radius: 8px;
  padding: 8px 14px;
  background: oklch(96% 0.005 250 / 0.96);
}

/* ── Heading ── */
.login-heading h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 5px;
}

.login-heading p {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ── Error ── */
.login-error {
  background: var(--danger-bg);
  border: 1px solid oklch(60% 0.18 17 / 0.25);
  color: var(--danger);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ── Form ── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.login-field label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.login-field input {
  background: var(--surface-3);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 0.875rem;
  font-family: var(--font-body);
  width: 100%;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.login-field input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 0px;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px oklch(70.5% 0.103 72 / 0.12);
}

.login-field input::placeholder {
  color: var(--text-disabled);
}

.login-submit {
  background: var(--gold);
  color: oklch(12% 0.018 248);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  width: 100%;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
  margin-top: 4px;
}

.login-submit:hover {
  background: var(--gold-hover);
  box-shadow: 0 3px 12px oklch(70.5% 0.103 72 / 0.35);
}

.login-footer {
  font-size: 0.63rem;
  color: var(--text-disabled);
  text-align: center;
  letter-spacing: 0.05em;
}

/* ── Right aside ── */
.login-aside {
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
  position: relative;
  overflow: hidden;
}

.login-aside::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, oklch(70.5% 0.103 72 / 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 30% 60%, oklch(30% 0.060 248 / 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.login-aside-content {
  max-width: 400px;
  position: relative;
  z-index: 1;
}

.login-aside-quote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 18px;
}

.login-aside-attr {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-aside {
    display: none;
  }

  .login-card {
    border-right: none;
    padding: 40px 28px;
    justify-content: flex-start;
    padding-top: 60px;
  }
}
