/* -------------------------------------------------------------
 * a2zex.com Design System & Stylesheet
 * Custom Vanilla CSS for K-8 Educational Platform
 * ------------------------------------------------------------- */

/* Design Tokens & Variables */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #e0e7ff;
    --secondary: #7c3aed;
    --secondary-hover: #6d28d9;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --accent-light: #fef3c7;
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.05), 0 4px 6px -4px rgba(79, 70, 229, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
    --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-hero: linear-gradient(135deg, #f5f3ff 0%, #e0e7ff 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Helper Layout Utilities */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .grid-2 {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.w-full {
    width: 100%;
}

/* Glassmorphic App Header */
.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo styling */
.app-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.75rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--text);
}

.logo-icon {
    width: 2.25rem;
    height: 2.25rem;
    color: var(--primary);
    transition: var(--transition);
}

.app-logo:hover .logo-icon {
    transform: rotate(-10deg) scale(1.1);
}

.logo-text span {
    color: var(--secondary);
}

/* App Nav Menu */
.app-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-menu {
    display: flex;
    gap: 1.75rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

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

.nav-link:hover::after {
    width: 100%;
}

/* School Selector Dropdowns inside Header */
.school-selector-container {
    background: #f1f5f9;
    border: 1px solid var(--border);
    padding: 0.4rem 0.6rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-inset);
}

.selector-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    margin-left: 0.5rem;
}

.selector-row {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.selector-dropdown {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 0.35rem 1.8rem 0.35rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    outline: none;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 0.75rem;
    max-width: 120px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.selector-dropdown:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.selector-dropdown:disabled {
    background-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Portal Go Button */
.portal-btn {
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.portal-btn:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.portal-btn:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

/* Mobile Nav Toggle button */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 1.5rem;
    height: 1.1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
}

.mobile-nav-toggle span {
    width: 100%;
    height: 2.5px;
    background-color: var(--text);
    border-radius: 5px;
    transition: var(--transition);
}

/* Buttons style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    color: #ffffff;
}

.btn-secondary {
    background: var(--primary-light);
    color: var(--primary);
}

.btn-secondary:hover {
    background: #cbd5e1;
    transform: translateY(-2px);
}

.btn-large {
    padding: 0.95rem 2rem;
    font-size: 1.1rem;
}

/* Highlight selector action pulse */
@keyframes pulseHighlight {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); border-color: var(--accent); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); border-color: var(--accent); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.highlight-pulse {
    animation: pulseHighlight 1.5s infinite;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    padding: 5rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.hero-badge {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 580px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-img {
    filter: drop-shadow(0 20px 30px rgba(79, 70, 229, 0.15));
    animation: floatImage 6s ease-in-out infinite;
    border-radius: var(--radius-md);
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Stats Section */
.stats-section {
    background: var(--card-bg);
    padding: 3rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

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

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Features Section */
.features-section {
    padding: 6rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 6rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.15);
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.bg-blue { background: rgba(79, 70, 229, 0.08); color: var(--primary); }
.bg-green { background: rgba(16, 185, 129, 0.08); color: var(--success); }
.bg-purple { background: rgba(124, 58, 237, 0.08); color: var(--secondary); }

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

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

/* Feature Highlight block */
.feature-highlight {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
}

.feature-highlight-img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    width: 100%;
}

.highlight-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.highlight-tag {
    background: rgba(16, 185, 129, 0.08);
    color: var(--success);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    align-self: flex-start;
}

.highlight-content h3 {
    font-size: 1.85rem;
}

.highlight-content p {
    color: var(--text-muted);
}

.highlight-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.highlight-bullets li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.bullet-check {
    width: 1.15rem;
    height: 1.15rem;
    color: var(--success);
    flex-shrink: 0;
}

/* Interactive Quiz Section */
.quiz-demo-section {
    background: #f1f5f9;
    padding: 6rem 1.5rem;
}

.quiz-demo-container {
    max-width: 1200px;
    margin: 0 auto;
}

.quiz-interactive-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 3rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quiz-screen {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
}

.quiz-screen.active {
    display: flex;
}

.quiz-screen h3 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.quiz-setup-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
}

.chip-group {
    display: flex;
    gap: 0.75rem;
}

.chip {
    background: #f1f5f9;
    border: 1px solid var(--border);
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.chip:hover {
    background: #e2e8f0;
}

.chip.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

/* Quiz Progress */
.quiz-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quiz-progress-text {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.quiz-progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.4s ease;
}

.question-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-btn {
    text-align: left;
    background: var(--card-bg);
    border: 2px solid var(--border);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.option-btn:hover:not(:disabled) {
    border-color: var(--primary-light);
    background: #fafafa;
}

.option-btn.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.option-btn.correct {
    border-color: var(--success);
    background: var(--success-light);
    color: var(--success);
}

.option-btn.wrong {
    border-color: var(--danger);
    background: var(--danger-light);
    color: var(--danger);
}

.option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

/* Results section */
.results-badge {
    background: var(--accent-light);
    color: var(--accent);
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.results-badge svg {
    width: 2.25rem;
    height: 2.25rem;
}

.quiz-screen#quiz-screen-results {
    text-align: center;
}

.results-score {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0.5rem 0;
}

.results-feedback {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.results-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.quiz-marketing-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quiz-marketing-text h2 {
    font-size: 2.25rem;
}

.quiz-preview-image-box {
    margin-top: 1rem;
}

.quiz-preview-img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    width: 100%;
}

/* Pricing Section */
.pricing-section {
    padding: 6rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.price-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 2.25rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.price-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.price-card.popular {
    border: 2px solid var(--primary);
    box-shadow: 0 25px 50px -12px rgba(79, 70, 229, 0.15);
}

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

.price-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 2.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

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

.price-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    min-height: 48px;
}

.price-card hr {
    border: none;
    border-top: 1px solid var(--border);
    margin-bottom: 2rem;
}

.price-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-grow: 1;
}

.price-features li {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-left: 1.75rem;
}

.price-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 1.15rem;
    height: 1.15rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100%;
}

.price-card.popular .price-features li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Call to Action Banner */
.cta-banner-section {
    padding: 6rem 1.5rem;
    background: var(--gradient-primary);
    color: #ffffff;
    text-align: center;
}

.cta-banner-container {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.cta-banner-section h2 {
    color: #ffffff;
    font-size: 2.25rem;
}

.cta-banner-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-banner-section .btn-primary {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.cta-banner-section .btn-primary:hover {
    background: #f8fafc;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Student Login Portal Specifics */
.login-portal-section {
    padding: 6rem 1.5rem;
    background: var(--gradient-hero);
    min-height: calc(100vh - 84px - 280px); /* Fill screen space between header and footer */
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-portal-container {
    width: 100%;
    max-width: 500px;
}

.login-card-wrapper {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.login-school-header {
    text-align: center;
}

.school-badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.login-school-header h2 {
    font-size: 1.75rem;
    margin: 0.75rem 0 0.25rem 0;
}

.school-subtitle {
    color: var(--text-muted);
    font-weight: 500;
}

.login-alert-info {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
}

.alert-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.alert-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.alert-text {
    font-size: 0.88rem;
    color: #92400e;
    line-height: 1.5;
}

.portal-login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

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

.input-icon {
    position: absolute;
    left: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-muted);
}

.input-wrapper input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.form-options {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 500;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.login-card-footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.teacher-link {
    font-size: 0.85rem;
}

/* Premium Footer */
.app-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 5rem 1.5rem 2rem 1.5rem;
    border-top: 1px solid #1e293b;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr repeat(3, 1fr);
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.75rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    color: var(--primary);
}

.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 320px;
    opacity: 0.85;
}

.footer-links h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Mobile Responsiveness & Layout Overrides */
@media (max-width: 991px) {
    .header-container {
        position: relative;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .app-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--border);
        padding: 1.5rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
    }
    
    .app-nav.open {
        display: flex;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .school-selector-container {
        width: 100%;
        flex-direction: column;
        border-radius: var(--radius-md);
        padding: 1rem;
    }
    
    .selector-row {
        width: 100%;
        flex-direction: column;
    }
    
    .selector-dropdown {
        max-width: 100%;
        width: 100%;
    }
    
    .portal-btn {
        width: 100%;
        border-radius: 30px;
        height: auto;
        padding: 0.6rem;
    }
}
