/* ── login.css ──────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; font-size: 16px; }

body.login-page {
  font-family: var(--font-sans);
  background: var(--background-secondary);
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

/* ── Two-column layout ──────────────────────────────────────────────────── */
.login-layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Left branding panel — hidden on mobile */
.login-brand {
  flex: 0 0 420px;
  background: var(--secondary);
  padding: 60px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.login-brand::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(193,39,45,0.15);
  pointer-events: none;
}

.login-brand::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.brand-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 60px;
  position: relative; z-index: 1;
}
.brand-logo img { height: 36px; width: auto; }
.brand-wordmark {
  font-size: 16px; font-weight: 800;
  letter-spacing: 0.14em; color: white;
}

.brand-headline {
  position: relative; z-index: 1;
}
.brand-headline h2 {
  font-size: 32px; font-weight: 800;
  color: white; line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.brand-headline p {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

.brand-features {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 14px;
}
.brand-feature {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: rgba(255,255,255,0.8);
}
.brand-feature-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ── Right form panel ───────────────────────────────────────────────────── */
.login-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.login-card {
  width: 100%;
  max-width: 400px;
}

.login-card__header { margin-bottom: 36px; }

.login-card__logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
}
.login-card__logo img { height: 32px; width: auto; }
.login-card__logo-text {
  font-size: 15px; font-weight: 800;
  letter-spacing: 0.12em; color: var(--text-primary);
}

.login-card__title {
  font-size: 26px; font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.login-card__subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

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

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 13px; font-weight: 600;
  color: var(--text-primary);
}

.form-input {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 14px; color: var(--text-primary);
  background: var(--background);
  transition: border-color 150ms, box-shadow 150ms;
  width: 100%;
}
.form-input::placeholder { color: var(--text-light); }
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(193,39,45,0.1);
}

.submit-btn {
  width: 100%;
  padding: 13px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: transform 200ms, box-shadow 200ms;
  box-shadow: 0 1px 3px rgba(193,39,45,0.25);
}
.submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(193,39,45,0.3);
}
.submit-btn:disabled {
  opacity: 0.6; cursor: not-allowed; transform: none;
}

/* Error */
.error-message {
  display: none;
  padding: 12px 14px;
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
  border-radius: 8px;
  font-size: 13px; line-height: 1.5;
}

/* Footer text */
.login-footer-text {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.login-footer-text a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.login-footer-text a:hover { text-decoration: underline; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .login-brand { display: none; }
}

@media (max-width: 480px) {
  .login-form-panel { padding: 24px 16px; align-items: flex-start; padding-top: 48px; }
}
