:root {
  --primary-500: #246bfd;
  --primary-600: #1a52d8;
  --primary-100: #e5edff;
  --primary-50: #f5f8ff;
  --accent-500: #5bd1a5;
  --surface: #ffffff;
  --surface-alt: #f3f5fb;
  --text-primary: #16233a;
  --text-secondary: #5e7183;
  --text-muted: #8a97a7;
  --border: #dce3ee;
  --shadow: 0 24px 48px rgba(22, 35, 58, 0.08);
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(120% 120% at 20% 0%, rgba(36, 107, 253, 0.15), transparent),
              radial-gradient(110% 110% at 80% 0%, rgba(91, 209, 165, 0.18), transparent),
              linear-gradient(180deg, #f6f8fc 0%, #eef1f7 100%);
  color: var(--text-primary);
  min-height: 100vh;
  font-size: 0.98rem;
}

.auth-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.auth-page::before,
.auth-page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
}

.auth-page::before {
  width: 420px;
  height: 420px;
  background: rgba(36, 107, 253, 0.25);
  top: -120px;
  left: -120px;
}

.auth-page::after {
  width: 520px;
  height: 520px;
  background: rgba(91, 209, 165, 0.25);
  bottom: -160px;
  right: -140px;
}

.auth-inner {
  position: relative;
  z-index: 1;
}

.brand-panel {
  max-width: 520px;
}

.brand-panel .brand-mark {
  display: inline-block;
  width: 220px;
  max-width: 80%;
  filter: drop-shadow(0 16px 32px rgba(36, 107, 253, 0.18));
}

.brand-panel .brand-heading {
  font-size: clamp(1.85rem, 2.6vw, 2.35rem);
  font-weight: 700;
  margin: 1.5rem 0 0.85rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.brand-panel .brand-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.brand-highlight {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(220, 227, 238, 0.7);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 22px rgba(22, 35, 58, 0.08);
  backdrop-filter: blur(14px);
  margin-bottom: 0.9rem;
}

.brand-highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-100);
  color: var(--primary-500);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}

.brand-highlight-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.brand-highlight-text strong {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.stats-glance {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 1.1rem;
}

.glance-card {
  border-radius: 13px;
  border: 1px solid rgba(220, 227, 238, 0.7);
  background: rgba(255, 255, 255, 0.6);
  padding: 0.85rem 0.95rem;
  box-shadow: 0 8px 18px rgba(22, 35, 58, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.glance-card .label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
}

.glance-card .value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.glance-card .subtext {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.trust-badges {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.trust-avatars {
  display: flex;
  align-items: center;
}

.trust-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  margin-right: -10px;
  border: 2px solid #fff;
  box-shadow: 0 6px 14px rgba(22, 35, 58, 0.2);
}

.trust-avatar.variant-blue {
  background: linear-gradient(135deg, #4d8dff, #2563eb);
}

.trust-avatar.variant-green {
  background: linear-gradient(135deg, #34d399, #059669);
}

.trust-avatar.variant-purple {
  background: linear-gradient(135deg, #a855f7, #6d28d9);
}

.trust-avatar.variant-orange {
  background: linear-gradient(135deg, #fb923c, #f97316);
}

.trust-meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.trust-meta strong {
  color: var(--text-primary);
  font-weight: 600;
}

.brand-feature-card {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 14px;
  border: 1px solid rgba(220, 227, 238, 0.6);
  margin-bottom: 1rem;
  box-shadow: 0 18px 40px rgba(22, 35, 58, 0.08);
}

.brand-feature-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-100);
  display: grid;
  place-items: center;
  color: var(--primary-500);
  font-size: 1.2rem;
}

.brand-feature-card .text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.brand-feature-card .title {
  font-weight: 600;
  color: var(--text-primary);
}

.brand-feature-card .subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.feature-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.feature-item i {
  color: var(--primary-500);
  margin-top: 2px;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.75);
}

.auth-card {
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(220, 227, 238, 0.7);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(36, 107, 253, 0.12), transparent 45%);
}

.auth-card .card-body {
  position: relative;
  padding: 32px 36px;
  z-index: 1;
}

.auth-card .card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.auth-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.auth-card-secondary {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(220, 227, 238, 0.8);
  box-shadow: 0 12px 32px rgba(22, 35, 58, 0.06);
  backdrop-filter: blur(16px);
  padding: 24px;
}


.auth-card-secondary .btn-create-account {
  background: #32a11b;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  color: #ffffff;
}

.auth-card-secondary .btn-create-account:hover {
  background: linear-gradient(135deg, #4bc796, #28b17f);
}

.form-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-control {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(36, 107, 253, 0.12);
  background: #fff;
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.invalid-feedback,
.text-danger,
.alert-danger li {
  font-size: 0.85rem;
}

.form-text {
  color: var(--text-muted);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border: none;
  border-radius: 12px;
  font-weight: 600;
  padding: 0.78rem;
  box-shadow: 0 12px 24px rgba(36, 107, 253, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 0.98rem;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(36, 107, 253, 0.3);
}

.btn-outline-primary {
  border-radius: 10px;
  border: 1px solid rgba(36, 107, 253, 0.3);
  color: var(--primary-500);
  font-weight: 600;
  padding: 0.75rem;
  background: #fff;
}

.btn-outline-primary:hover {
  background: rgba(36, 107, 253, 0.08);
  border-color: var(--primary-500);
  color: var(--primary-600);
}

.link-blue {
  color: var(--primary-500);
  font-weight: 600;
}

.link-blue:hover {
  color: var(--primary-600);
}


.social-login {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.social-btn {
  border-radius: 10px;
  padding: 0.75rem;
  border: 1px solid rgba(22, 35, 58, 0.12);
  background: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(22, 35, 58, 0.08);
  border-color: rgba(22, 35, 58, 0.18);
}

.social-btn.facebook-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border: none;
}

.social-btn.facebook-btn:hover {
  box-shadow: 0 16px 30px rgba(36, 107, 253, 0.35);
}

.divider {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 1.5rem 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px dashed rgba(22, 35, 58, 0.15);
}

.divider span {
  margin: 0 0.75rem;
}

.password-field .form-control {
  padding-right: 2.5rem;
}

.password-toggle {
  position: absolute;
  bottom: 0px;
  right: 0;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease;
}

.password-toggle:hover {
  color: var(--primary-500);
  background: rgba(55, 88, 249, 0.08);
}

.form-check-label {
  color: var(--text-secondary);
}

.footer-container {
  padding: 24px 0;
  border-top: 1px solid rgba(22, 35, 58, 0.08);
  background: transparent;
}

.footer-link {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary-500);
}

@media (max-width: 991.98px) {
  .brand-panel {
    text-align: center;
    margin-bottom: 2rem;
  }

  .brand-feature-card {
    margin-inline: auto;
  }

  .feature-list {
    justify-items: center;
  }
}

@media (max-width: 575.98px) {
  .auth-card .card-body {
    padding: 28px;
  }

  .brand-panel .brand-heading {
    font-size: 2rem;
  }
}

/* password strength overrides */
.password-strength-meter {
  margin-top: 8px;
  height: 4px;
  border-radius: 999px;
  background-color: rgba(22, 35, 58, 0.08);
  overflow: hidden;
}

.password-strength-meter .strength-bar {
  height: 100%;
  transition: all 0.3s ease;
  width: 0%;
  border-radius: 999px;
}

.password-strength-meter .strength-bar.weak {
  background-color: #f97373;
  width: 25%;
}

.password-strength-meter .strength-bar.medium {
  background-color: #f9a34d;
  width: 50%;
}

.password-strength-meter .strength-bar.strong {
  background-color: #4fbe79;
  width: 75%;
}

.password-strength-meter .strength-bar.very-strong {
  background-color: #2aa06a;
  width: 100%;
}

.password-strength-text {
  font-size: 0.85rem;
  margin-top: 4px;
  font-weight: 500;
}

.password-strength-text.weak {
  color: #f97373;
}

.password-strength-text.medium {
  color: #f9a34d;
}

.password-strength-text.strong {
  color: #4fbe79;
}

.password-strength-text.very-strong {
  color: #2aa06a;
}

.password-requirements {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.password-requirements .requirement {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  gap: 0.5rem;
}

.password-requirements .requirement.met {
  color: #2aa06a;
}

.password-requirements .requirement.not-met {
  color: var(--text-muted);
}

/* reCAPTCHA scaling */
.g-recaptcha {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  transform-origin: 0 0;
}

@media (max-width: 480px) {
  .g-recaptcha {
    transform: scale(0.9);
  }
}
