/* ==========================================
   School Login Landing Page Design System
   Professional White & Blue Theme (No Gradients)
   ========================================== */

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

:root {
  --primary-blue: #1d4ed8;
  --primary-blue-hover: #1e40af;
  --primary-blue-light: #eff6ff;
  --blue-badge-bg: #dbeafe;
  --blue-badge-text: #1e40af;
  --navy-dark: #0f172a;
  --navy-header: #1e293b;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --border-blue: #93c5fd;
  
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 12px 28px -4px rgba(15, 23, 42, 0.12);
}

body.school-landing-body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-dark);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Header / Navbar */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.brand-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-blue);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.35rem;
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--navy-dark);
  letter-spacing: -0.3px;
}

.brand-tag {
  font-size: 0.725rem;
  padding: 2px 8px;
  background-color: var(--blue-badge-bg);
  color: var(--blue-badge-text);
  border: 1px solid var(--border-blue);
  border-radius: 20px;
  font-weight: 700;
  margin-left: 6px;
}

.nav-link-custom {
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: color 0.2s ease;
  text-decoration: none;
  font-size: 0.95rem;
}

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

.btn-admin-portal {
  background-color: var(--primary-blue-light);
  color: var(--primary-blue);
  border: 1px solid var(--border-blue);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-admin-portal:hover {
  background-color: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 3.5rem 0 4.5rem;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  background-color: var(--primary-blue-light);
  border: 1px solid var(--border-blue);
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--navy-dark);
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.text-blue-accent {
  color: var(--primary-blue);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 2.25rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--navy-dark);
  font-weight: 600;
}

.highlight-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--blue-badge-bg);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.hero-stats-row {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.stat-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.65rem;
  color: var(--primary-blue);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Professional White & Blue Login Card */
.login-card-wrapper {
  position: relative;
}

.professional-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--primary-blue);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease;
}

.professional-card:hover {
  box-shadow: var(--shadow-hover);
}

.card-header-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--navy-dark);
  margin-bottom: 0.25rem;
}

.card-header-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Form Controls */
.custom-form-group {
  margin-bottom: 1.25rem;
}

.custom-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 0.4rem;
  display: block;
}

.custom-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-left {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 1.05rem;
  pointer-events: none;
  z-index: 2;
  transition: color 0.2s ease;
}

.custom-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem 0.75rem 2.65rem;
  color: var(--navy-dark);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.custom-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3.5px rgba(29, 78, 216, 0.15);
  color: var(--navy-dark);
}

.custom-input:focus ~ .input-icon-left {
  color: var(--primary-blue);
}

.custom-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  font-size: 1.05rem;
  transition: color 0.2s ease;
  z-index: 2;
}

.password-toggle-btn:hover {
  color: var(--primary-blue);
}

/* Custom Checkbox */
.custom-checkbox-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.form-check-input-custom {
  appearance: none;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  margin-right: 8px;
  vertical-align: middle;
  transition: all 0.2s ease;
}

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

.form-check-input-custom:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 11px;
  font-weight: bold;
}

.remember-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 500;
}

.help-link {
  font-size: 0.85rem;
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.help-link:hover {
  color: var(--primary-blue-hover);
  text-decoration: underline;
}

/* Solid Blue Submit Button */
.btn-submit-hero {
  width: 100%;
  background-color: var(--primary-blue);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.btn-submit-hero:hover {
  background-color: var(--primary-blue-hover);
  transform: translateY(-1px);
}

.btn-submit-hero:active {
  transform: translateY(0);
}

/* Alert Styling */
.custom-alert {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

/* Features Section */
.features-section {
  padding: 4.5rem 0;
  background-color: var(--bg-page);
}

.section-tag {
  color: var(--primary-blue);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1.2px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.1rem;
  color: var(--navy-dark);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: all 0.25s ease;
  height: 100%;
  box-shadow: var(--shadow-card);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-blue);
  box-shadow: var(--shadow-hover);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-color: var(--primary-blue-light);
  color: var(--primary-blue);
  border: 1px solid var(--border-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy-dark);
  margin-bottom: 0.6rem;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.6;
}

/* Steps Section */
.workflow-section {
  padding: 4.5rem 0;
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.step-card {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem;
  text-align: center;
  height: 100%;
}

.step-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.15rem;
}

.step-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-dark);
  margin-bottom: 0.5rem;
}

/* Security Banner */
.security-banner {
  background-color: var(--primary-blue-light);
  border-top: 1px solid var(--border-blue);
  border-bottom: 1px solid var(--border-blue);
  padding: 3.5rem 0;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ffffff;
  color: var(--primary-blue);
  border: 1px solid var(--border-blue);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Modal Styling */
.modal-content-clean {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--primary-blue);
  color: var(--navy-dark);
  border-radius: var(--radius-lg);
}

.modal-header-clean {
  border-bottom: 1px solid var(--border-light);
  padding: 1.25rem 1.5rem;
}

/* Footer */
.landing-footer {
  padding: 2rem 0;
  background-color: var(--navy-dark);
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-section {
    padding: 2.5rem 0 3.5rem;
  }
  .hero-stats-row {
    margin-bottom: 2rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-highlights {
    grid-template-columns: 1fr;
  }
  .professional-card {
    padding: 1.75rem 1.25rem;
  }
}
