/* ==========================================================================
   BISE Student Portal - Professional Blue & White Theme Stylesheet
   ========================================================================== */

:root {
  --primary: #1e3a8a;          /* Deep Royal Navy */
  --primary-light: #2563eb;    /* Bright Professional Blue */
  --primary-dark: #172554;     /* Midnight Navy */
  --primary-subtle: #eff6ff;   /* Soft Ice Blue */
  --primary-border: #bfdbfe;   /* Gentle Blue Border */
  
  --accent-cyan: #0284c7;
  --accent-emerald: #059669;
  
  --bg-page: #f8fafc;
  --surface-white: #ffffff;
  --text-headline: #0f172a;    /* Dark Charcoal/Slate */
  --text-body: #334155;        /* Neutral Slate */
  --text-muted: #64748b;       /* Soft Gray Slate */
  
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  
  --radius-lg: 1.25rem;
  --radius-md: 0.75rem;
  --radius-sm: 0.5rem;
  
  --shadow-sm: 0 2px 4px rgba(30, 58, 138, 0.04);
  --shadow-md: 0 6px 16px -2px rgba(30, 58, 138, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 45px -12px rgba(30, 58, 138, 0.16), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
}

body.landing-body {
  background-color: var(--bg-page);
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(37, 99, 235, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 90% 75%, rgba(30, 58, 138, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #f0f7ff 0%, #ffffff 40%, #f8fafc 100%);
  background-attachment: fixed;
  color: var(--text-headline);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Top Navbar (Clean White with Royal Blue Accents)
   -------------------------------------------------------------------------- */
.landing-header {
  background: var(--surface-white);
  border-bottom: 2px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.85rem 2rem;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.04);
}

.landing-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  text-decoration: none;
}

.brand-logo {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(30, 58, 138, 0.12));
  transition: transform 0.25s ease;
}

.brand-wrapper:hover .brand-logo {
  transform: scale(1.03);
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--primary);
  line-height: 1.25;
}

.brand-subtitle {
  font-size: 0.775rem;
  color: #475569;
  font-weight: 500;
  line-height: 1.3;
  margin-top: 1px;
}

.brand-tagline {
  font-size: 0.725rem;
  font-weight: 700;
  color: #0284c7;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-top: 1px;
}

@media (max-width: 900px) {
  .brand-title {
    font-size: 0.925rem;
  }
  .brand-subtitle {
    font-size: 0.72rem;
  }
  .brand-tagline {
    font-size: 0.68rem;
  }
}

@media (max-width: 768px) {
  .landing-header {
    padding: 0.5rem 1rem;
  }
  .brand-logo {
    height: 42px;
  }
  .brand-title {
    font-size: 0.825rem;
  }
  .brand-subtitle {
    font-size: 0.68rem;
  }
  .brand-tagline {
    font-size: 0.64rem;
  }
  .support-link span {
    display: none;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  transition: all 0.2s ease;
}

.support-link:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

/* --------------------------------------------------------------------------
   Hero & Main Grid Layout
   -------------------------------------------------------------------------- */
.landing-main {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .landing-main {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    padding: 2.5rem 1.25rem 3.5rem;
  }
}

/* --------------------------------------------------------------------------
   Left Column: Hero Content
   -------------------------------------------------------------------------- */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: #1d4ed8;
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 700;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.pill-badge i {
  color: #2563eb;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #475569;
  max-width: 580px;
}

/* Feature Checkpoints Cards */
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  margin-top: 0.25rem;
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .feature-list {
    grid-template-columns: 1fr;
  }
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--surface-white);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.feature-item:hover {
  border-color: var(--primary-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 1px solid #dbeafe;
}

.feature-text h4 {
  font-size: 0.925rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.feature-text p {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.35;
}

/* Stats Ribbon */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 2px solid #e2e8f0;
}

.stat-card {
  background: var(--surface-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.1rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   Right Column: Professional White Auth Card
   -------------------------------------------------------------------------- */
.auth-card-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.auth-card {
  background: var(--surface-white);
  color: var(--text-headline);
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1.5px solid #dbeafe;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.card-top-header {
  padding: 1.6rem 1.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.card-top-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.025em;
}

.card-top-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-weight: 500;
}

/* Tab Switcher */
.tab-switcher {
  display: flex;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0.35rem;
  margin: 1.25rem 1.75rem 0.5rem;
  position: relative;
}

.tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #64748b;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  outline: none;
}

.tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
}

.tab-btn:hover:not(.active) {
  color: var(--primary);
}

/* Forms Container */
.forms-body {
  padding: 1.5rem 1.75rem 2rem;
}

.form-pane {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.form-pane.active {
  display: block;
}

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

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

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.45rem;
}

.form-label span.req {
  color: #ef4444;
  margin-left: 2px;
}

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

.input-icon-wrapper i.input-icon {
  position: absolute;
  left: 1rem;
  color: #94a3b8;
  font-size: 1rem;
  pointer-events: none;
  transition: color 0.2s;
}

.form-input, .form-select {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.65rem;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: #0f172a;
  background: #ffffff;
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus, .form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.form-input::placeholder {
  color: #94a3b8;
  font-size: 0.875rem;
}

.input-icon-wrapper:focus-within i.input-icon {
  color: var(--primary-light);
}

/* Interactive Stream Cards (Course Select) */
.stream-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.stream-card {
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.5rem;
  text-align: center;
  cursor: pointer;
  background: #f8fafc;
  transition: all 0.2s ease;
  user-select: none;
}

.stream-card:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.stream-card.selected {
  border-color: var(--primary-light);
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.stream-card i {
  font-size: 1.25rem;
  color: #64748b;
  margin-bottom: 0.3rem;
  display: block;
  transition: color 0.2s;
}

.stream-card.selected i {
  color: var(--primary-light);
}

.stream-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  display: block;
}

.stream-card.selected .stream-name {
  color: var(--primary);
}

.stream-sub {
  font-size: 0.7rem;
  color: #64748b;
}

/* Medium Segmented Toggle */
.medium-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.medium-pill {
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  text-align: center;
  cursor: pointer;
  background: #f8fafc;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  user-select: none;
}

.medium-pill:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.medium-pill.selected {
  border-color: var(--primary-light);
  background: #eff6ff;
  color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.medium-pill.selected i {
  color: var(--primary-light);
}

/* Combination Select Pill / Options */
.combination-select-wrapper {
  margin-top: 0.25rem;
}

/* Primary Action Buttons */
.submit-btn {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.22);
  margin-top: 1.25rem;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #172554 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(30, 58, 138, 0.3);
}

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

.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Feedback Messages */
.feedback-box {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
  animation: fadeIn 0.2s ease;
}

.feedback-box.error {
  background-color: #fef2f2;
  border: 1.5px solid #fecaca;
  color: #b91c1c;
}

.feedback-box.success {
  background-color: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  color: #15803d;
}

/* Switcher Link */
.form-footer-link {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-footer-link a {
  color: var(--primary-light);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.form-footer-link a:hover {
  text-decoration: underline;
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   Footer (Professional White & Light Border)
   -------------------------------------------------------------------------- */
.landing-footer {
  background: var(--surface-white);
  border-top: 2px solid #e2e8f0;
  padding: 1.5rem 2rem;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
  margin-top: auto;
}

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

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

.footer-links a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}

/* Landing Page Background Watermark */
.landing-watermark-bg {
  position: fixed;
  top: 50%;
  left: 28%;
  transform: translate(-50%, -50%);
  width: 650px;
  max-width: 85vw;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  -webkit-user-select: none;
}

.landing-watermark-bg img {
  width: 100%;
  height: auto;
  display: block;
}

