/*
 * Author: Rinst
 * Company: AZEITS
 * Date: 2026
 * Description: Premium modern styles for HealthCheck Auth Flow — Landing Page Layout
 */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --auth-primary:        #0d6efd;
  --auth-primary-dark:   #0a58ca;
  --auth-primary-hover:  #0a58ca;
  --auth-primary-light:  #cfe2ff;
  --auth-bg:             #f4f6f8;
  --auth-text-dark:      #1a1f24;
  --auth-text-gray:      #64748b;
  --auth-text-green:     #0d6efd;
  --auth-border:         #e2e8f0;
  --auth-white:          #ffffff;
  --auth-radius-lg:      20px;
  --auth-radius-md:      12px;
  --auth-radius-sm:      5px;
  --auth-shadow:         0 4px 24px rgba(0,0,0,0.08);
  --auth-shadow-lg:      0 20px 60px rgba(0,0,0,0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", -apple-system, sans-serif;
  background-color: var(--auth-bg);
  color: var(--auth-text-dark);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

.lp-navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
}

.lp-navbar-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lp-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.lp-nav-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.lp-nav-brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--auth-primary);
}

.lp-nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 2;
}

.lp-nav-links-center {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.lp-nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--auth-text-dark);
  transition: color 0.2s;
}
.lp-nav-link:hover { color: var(--auth-primary); }

.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: flex-end;
}

.lp-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--auth-text-dark);
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}
.lp-mobile-toggle i { font-size: 1.75rem; }

.lp-btn-signin {
  background: transparent;
  border: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--auth-text-dark);
  cursor: pointer;
  padding: 0.5rem 1rem;
}

.lp-btn-signin:hover {
  color: var(--auth-primary);
}

.lp-btn-open-account {
  background: var(--auth-text-dark);
  color: var(--auth-white);
  padding: 0.6rem 1.25rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.lp-btn-open-account:hover {
  opacity: 0.9;
  color: var(--auth-white);
}

.lp-hero {
  padding: 3.5rem 2rem 4rem;
  background-color: #ffffff;
  position: relative;
  z-index: 1;
}

/* The soft blue radial background at the top */
.lp-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at top center, rgba(59, 130, 246, 0.15), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* The grid pattern masked at the bottom */
.lp-hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: linear-gradient(to right, #e2e8f0 1px, transparent 1px),
    linear-gradient(to bottom, #e2e8f0 1px, transparent 1px);
  background-size: 20px 30px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 100%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 100%, #000 60%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

.lp-hero-center-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 2rem;
}

.lp-hero-headline-center {
  font-size: 4rem;
  font-weight: 500;
  color: var(--auth-text-dark);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.lp-hero-desc-center {
  font-size: 1.1rem;
  color: var(--auth-text-gray);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.lp-hero-actions-center {
  display: flex;
  justify-content: center;
  margin-bottom: 4rem;
}

.lp-btn-demo {
  background: var(--auth-primary);
  color: var(--auth-white);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.lp-btn-demo:hover {
  background: var(--auth-primary-dark);
  transform: translateY(-2px);
}

.lp-hero-dashboard-wrap {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.lp-hero-dashboard-img {
  width: 100%;
  display: block;
  height: auto;
}

.lp-login-card {
  background: var(--auth-white);
  border-radius: var(--auth-radius-lg);
  box-shadow: var(--auth-shadow-lg);
  overflow: hidden;
}

.lp-login-card-header {
  background: var(--auth-primary);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.lp-login-card-icon {
  background: rgba(255,255,255,0.20);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lp-card-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.lp-login-card-header-text {
  display: flex;
  flex-direction: column;
}
.lp-card-title {
  color: var(--auth-white);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}
.lp-card-subtitle {
  color: rgba(255,255,255,0.80);
  font-size: 0.78rem;
  font-weight: 400;
}

.lp-card-header-circle {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.10);
  border-radius: 50%;
  pointer-events: none;
}

/* Card Body */
.lp-login-card-body {
  padding: 1.75rem 1.5rem 1.5rem;
}

.auth-welcome-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--auth-text-dark);
  margin-bottom: 0.25rem;
  letter-spacing: -0.5px;
}

.auth-welcome-subtitle {
  color: var(--auth-text-gray);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.form-group-custom {
  margin-bottom: 1.1rem;
}

.form-label-custom {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--auth-text-dark);
  margin-bottom: 0.5rem;
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrapper i:not(.toggle-password) {
  position: absolute;
  left: 1rem;
  color: var(--auth-text-gray);
  font-size: 1.15rem;
  pointer-events: none;
}

.form-control-custom {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 3rem;
  border: 1.5px solid var(--auth-border);
  border-radius: var(--auth-radius-md);
  font-size: 0.95rem;
  font-family: "Inter", sans-serif;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
  color: var(--auth-text-dark);
  background: #fff;
}
.form-control-custom::placeholder { color: #94a3b8; }
.form-control-custom:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 4px rgba(5,147,68,0.08);
}

.toggle-password {
  position: absolute;
  right: 1rem;
  cursor: pointer;
  color: var(--auth-text-gray);
  font-size: 1.15rem;
  transition: color 0.2s;
  user-select: none;
}
.toggle-password:hover { color: var(--auth-primary); }

.btn-sign-in {
  width: 100%;
  background: var(--auth-primary);
  color: var(--auth-white);
  border: none;
  padding: 0.9rem;
  border-radius: var(--auth-radius-md);
  font-weight: 700;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  margin-top: 1.25rem;
}
.btn-sign-in i { font-size: 1.1rem; }
.btn-sign-in:hover {
  background: var(--auth-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(5,147,68,0.30);
}
.btn-sign-in:active { transform: translateY(0); }

.lp-card-badges {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--auth-border);
}

.lp-card-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--auth-text-dark);
}
.lp-card-badge i {
  color: var(--auth-primary);
  font-size: 1rem;
}

.auth-extra-links { margin-top: 1rem; text-align: center; }
.auth-extra-links p { font-size: 0.875rem; color: var(--auth-text-gray); }

.signup-link {
  color: var(--auth-primary);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}
.signup-link:hover { color: var(--auth-primary-dark); text-decoration: underline; }

.lp-features {
  padding: 4rem 2rem;
  background: var(--auth-white);
}

.lp-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.lp-section-tag {
  display: inline-block;
  background: var(--auth-primary-light);
  color: var(--auth-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 30px;
  margin-bottom: 1rem;
  letter-spacing: 0.3px;
}

.lp-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--auth-text-dark);
  letter-spacing: -0.5px;
  margin-bottom: 2.5rem;
}

.lp-feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: left;
}

.lp-feature-card {
  background: var(--auth-bg);
  border-radius: var(--auth-radius-lg);
  padding: 2rem 1.75rem;
  transition: box-shadow 0.25s, transform 0.25s;
}
.lp-feature-card:hover {
  box-shadow: var(--auth-shadow);
  transform: translateY(-4px);
}

.lp-feature-icon {
  width: 48px;
  height: 48px;
  background: var(--auth-primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.lp-feature-icon i { color: var(--auth-primary); font-size: 1.4rem; }

.lp-feature-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--auth-text-dark);
  margin-bottom: 0.6rem;
}

.lp-feature-card-desc {
  font-size: 0.9rem;
  color: var(--auth-text-gray);
  line-height: 1.7;
}

.lp-announcements {
  padding: 4rem 2rem;
  background: var(--auth-bg);
}

.lp-carousel-wrap {
  margin-top: 0.5rem;
}

.lp-carousel {
  position: relative;
}

.lp-slide {
  display: none;
  background: var(--auth-white);
  border-radius: var(--auth-radius-lg);
  overflow: hidden;
  grid-template-columns: 340px 1fr;
  box-shadow: var(--auth-shadow);
  animation: lp-fade-in 0.4s ease;
}
.lp-slide.active { display: grid; }

@keyframes lp-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lp-slide-img-wrap {
  overflow: hidden;
  max-height: 320px;
}
.lp-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.lp-slide:hover .lp-slide-img { transform: scale(1.03); }

.lp-slide-body {
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.lp-slide-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--auth-primary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lp-slide-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--auth-text-dark);
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.lp-slide-desc {
  font-size: 0.95rem;
  color: var(--auth-text-gray);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.lp-btn-learn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--auth-primary);
  color: var(--auth-white);
  padding: 0.7rem 1.5rem;
  border-radius: var(--auth-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
  align-self: flex-start;
}
.lp-btn-learn i { font-size: 1rem; }
.lp-btn-learn:hover { background: var(--auth-primary-dark); transform: translateY(-1px); }

.lp-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.lp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  padding: 0;
}
.lp-dot.active {
  background: var(--auth-primary);
  transform: scale(1.2);
}
.lp-footer {
  background: var(--auth-white);
  border-top: 1px solid var(--auth-border);
  padding: 2rem;
}

.lp-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.lp-footer-brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--auth-text-dark);
  display: block;
  margin-bottom: 0.25rem;
}

.lp-footer-copy {
  font-size: 0.82rem;
  color: var(--auth-text-gray);
}
.lp-footer-copy-green { color: var(--auth-primary); font-weight: 500; }

.lp-footer-links {
  display: flex;
  gap: 1.5rem;
}

.lp-footer-link {
  font-size: 0.85rem;
  color: var(--auth-text-gray);
  transition: color 0.2s;
}
.lp-footer-link:hover { color: var(--auth-primary); }

.text-center  { text-align: center !important; }
.mb-4         { margin-bottom: 1.5rem !important; }
.mb-5         { margin-bottom: 3rem !important; }
.mt-4         { margin-top: 1.5rem !important; }
.mt-5         { margin-top: 3rem !important; }
.text-muted   { color: var(--auth-text-gray) !important; }

.otp-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.otp-field {
  width: 52px;
  height: 64px;
  border-radius: var(--auth-radius-md);
  border: 1.5px solid var(--auth-border);
  background: var(--auth-white);
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--auth-text-dark);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.otp-field:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 4px rgba(5,147,68,0.1);
  outline: none;
  transform: translateY(-2px);
}

.spin-animation { animation: spin 1s linear infinite; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.opacity-75 { opacity: 0.75 !important; }

.alertify-notifier .ajs-message { color: #fff !important; }

@media (max-width: 1024px) {
  .lp-hero-headline-center { font-size: 3.25rem; }
}

@media (max-width: 860px) {
  .lp-navbar-inner { padding: 0 1.5rem; }
  
  .lp-mobile-toggle { display: block; }
  
  .lp-nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--auth-white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--auth-border);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateY(-110%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 90;
    margin-left: 0;
    display: none;
  }
  
  .lp-nav-menu.active {
    transform: translateY(0);
    display: flex !important;
  }
  
  .lp-nav-links-center {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 1rem;
  }
  
  .lp-nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--auth-bg);
  }
  
  .lp-btn-open-account {
    width: 100%;
    justify-content: center;
    padding: 0.8rem;
    display: flex;
  }

  .lp-nav-actions {
    display: none; /* Hide actions on mobile for simplicity or adjust to fit into nav menu */
  }

  .lp-hero-center-inner {
    padding-top: 1rem;
  }
  .lp-login-card { max-width: 480px; margin: 0 auto; }
  .lp-feature-cards { grid-template-columns: 1fr 1fr; }
  .lp-slide.active { grid-template-columns: 1fr; }
  .lp-slide-img-wrap { max-height: 220px; }
}

@media (max-width: 600px) {
  .lp-hero { padding: 2rem 1rem 3rem; }
  .lp-hero-headline-center { font-size: 2.25rem; }
  .lp-feature-cards { grid-template-columns: 1fr; }
  .lp-features, .lp-announcements { padding: 3rem 1rem; }
  .lp-footer-inner { flex-direction: column; text-align: center; }
  .lp-footer-links { justify-content: center; }
}
.auth-modal-scroll-area::-webkit-scrollbar {
    width: 6px;
}
.auth-modal-scroll-area::-webkit-scrollbar-track {
    background: transparent;
}
.auth-modal-scroll-area::-webkit-scrollbar-thumb {
    background: var(--auth-border);
    border-radius: 10px;
}
.auth-modal-scroll-area::-webkit-scrollbar-thumb:hover {
    background: var(--auth-text-gray);
}

.support-icon-box i {
    font-size: 1.25rem;
}

@media (max-width: 576px) {
    .lp-slide-body {
        padding: 1.5rem;
    }
}
.text-primary {
  color: var(--auth-primary) !important;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

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

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}