/* CONFIA Landing & Login Styles — brand tokens from tokens.css */
:root {
  --gradient-start: var(--primary-color, #4472c4);
  --gradient-end: #5b9bd5;
  --landing-bg: #0f1c2e;
  --landing-surface: rgba(255, 255, 255, 0.04);
  --landing-text: #e8edf5;
  --landing-muted: #94a3b8;
}

body.landing-page {
  font-family: "DM Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--landing-bg);
  color: var(--landing-text);
  min-height: 100vh;
}

body.landing-page em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  color: #7eb8ff;
}

/* Legacy login-page (signup wizard) */
body.login-page {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "DM Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
  max-width: 450px;
  width: 100%;
  padding: 20px;
}

.login-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-header {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: white;
  padding: 40px 30px;
  text-align: center;
}

.login-header-compact {
  padding: 28px 24px;
}

.login-header-compact i {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.login-header-compact h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
}

.login-header i {
  font-size: 4rem;
  margin-bottom: 15px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.login-header h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
}

.login-header p {
  margin: 10px 0 0 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.login-body {
  padding: 40px 30px;
}

.landing-hero .login-body {
  padding: 28px 24px;
}

.login-body .form-floating {
  margin-bottom: 20px;
}

.login-body .form-floating > label {
  color: #6c757d;
  padding-left: 45px;
}

.login-body .form-control {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 12px 15px 12px 45px;
  font-size: 1rem;
  transition: all 0.3s ease;
  height: calc(3.5rem + 2px);
}

.login-body .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(68, 114, 196, 0.15);
}

.input-group-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  z-index: 10;
  font-size: 1.2rem;
}

.login-body .password-wrapper .form-control {
  padding-right: 48px;
}

.login-body .password-toggle-btn {
  z-index: 12;
}

.btn-login {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  padding: 14px;
  font-size: 1.1rem;
  width: 100%;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(68, 114, 196, 0.4);
  color: white;
}

.login-body .alert {
  border-radius: 10px;
  border: none;
  margin-bottom: 20px;
}

.login-body .alert-danger {
  background-color: #fee;
  color: #c33;
}

.login-body .form-check {
  margin: 20px 0;
}

.login-body .form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.register-link p {
  color: #6c757d;
}

.btn-register {
  display: inline-block;
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  font-weight: 600;
  padding: 10px 24px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-register:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(68, 114, 196, 0.3);
}

/* Landing navigation */
.landing-nav {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-brand {
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

.landing-brand:hover {
  color: #7eb8ff;
}

.btn-landing-cta {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 8px;
  font-weight: 600;
}

.btn-landing-cta:hover {
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

/* Hero */
.landing-hero {
  padding: 4rem 0 5rem;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(68, 114, 196, 0.25), transparent),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(91, 155, 213, 0.15), transparent);
}

.landing-badge {
  display: inline-block;
  background: rgba(126, 184, 255, 0.15);
  border: 1px solid rgba(126, 184, 255, 0.3);
  color: #7eb8ff;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.landing-headline {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: white;
}

.landing-subhead {
  font-size: 1.1rem;
  color: var(--landing-muted);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 2rem;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-landing-primary {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-landing-primary:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(68, 114, 196, 0.45);
}

.btn-landing-secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: white;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  text-decoration: none;
}

.btn-landing-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.landing-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--landing-muted);
}

.landing-trust-row i {
  color: #7eb8ff;
  margin-right: 0.35rem;
}

/* Features */
.landing-features {
  padding: 5rem 0;
  background: rgba(0, 0, 0, 0.2);
}

.landing-section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 3rem;
}

.landing-section-sub {
  text-align: center;
  color: var(--landing-muted);
  margin-top: -2rem;
  margin-bottom: 3rem;
}

.feature-card {
  background: var(--landing-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(126, 184, 255, 0.3);
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--landing-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Pricing */
.landing-pricing {
  padding: 5rem 0;
}

.pricing-card {
  background: var(--landing-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  position: relative;
  text-align: center;
}

.pricing-featured {
  border-color: var(--primary-color);
  box-shadow: 0 0 40px rgba(68, 114, 196, 0.2);
  transform: scale(1.02);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.pricing-audience {
  color: var(--landing-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.pricing-amount {
  font-size: 2.25rem;
  font-weight: 700;
  color: #7eb8ff;
  margin-bottom: 1.5rem;
}

.pricing-amount span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--landing-muted);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  text-align: left;
}

.pricing-card li {
  color: var(--landing-muted);
  padding: 0.4rem 0;
  font-size: 0.95rem;
}

.pricing-card li i {
  color: #4ade80;
  margin-right: 0.5rem;
}

.btn-pricing {
  display: block;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 600;
  padding: 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-pricing:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.btn-pricing-featured {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border: none;
}

.btn-pricing-featured:hover {
  color: white;
  box-shadow: 0 8px 20px rgba(68, 114, 196, 0.4);
}

/* CTA band */
.landing-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(68, 114, 196, 0.3), rgba(91, 155, 213, 0.15));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

.landing-cta p {
  color: var(--landing-muted);
  margin-bottom: 2rem;
}

/* Footer */
.landing-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-footer strong {
  color: white;
}

@media (max-width: 991px) {
  .pricing-featured {
    transform: none;
  }

  .landing-hero {
    padding-top: 2.5rem;
  }

  .landing-hero .login-card {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .login-container {
    padding: 10px;
  }

  .login-header {
    padding: 30px 20px;
  }

  .login-body {
    padding: 30px 20px;
  }
}
