/* Variables globales */
:root {
    --primary-color: #009a77;
    --primary-dark: #008165;
    --primary-light: #00b488;
    --secondary-color: #6c757d;
    --text-dark: #212529;
    --text-muted: rgba(0, 0, 0, 0.65);
    --text-light: rgba(255, 255, 255, 0.9);
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e9ecef;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --hover-shadow: 0 0.5rem 2rem rgba(0, 154, 119, 0.15);
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
}

/* Reset et base */
* {
    box-sizing: border-box;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 400;
    background-color: var(--bg-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.display-4 {
    font-weight: 800;
    color: var(--primary-color);
}

.display-5 {
    font-weight: 700;
    color: var(--primary-color);
}

.lead {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
    padding: 0.75rem 0;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo-container {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.logo-container:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: none;
    transition: var(--transition-base);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-nav {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition-base);
}

.btn-register {
    background-color: var(--primary-dark);
    color: white;
}

.btn-register:hover {
    background-color: #006b54;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 129, 101, 0.3);
}

.btn-login {
    background-color: var(--primary-color);
    color: white;
}

.btn-login:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 154, 119, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    box-shadow: 0 4px 15px rgba(0, 154, 119, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 154, 119, 0.3);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
}

/* Banner Section */
.banner-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.banner-content {
    position: relative;
    height: 100%;
    color: white;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
    backdrop-filter: blur(3px);
    z-index: 10;
}

.banner-messages {
    height: 160px;
    overflow: hidden;
    position: relative;
}

.message {
    position: absolute;
    width: 90%;
    max-width: 1200px;
    left: 50%;
    transform: translateX(-50%);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: slideMessage 35s infinite;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: bold;
    text-align: center;
}

/* Background Animations */
.bg-1 {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('https://images.unsplash.com/photo-1588072432836-e10032774350?auto=format&fit=crop&w=1920');
    animation: fadeBackground 28s infinite 0s, zoomEffect 15s infinite alternate;
}

.bg-2 {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1920');
    animation: fadeBackground 28s infinite 7s, zoomEffect 15s infinite alternate 7s;
}

.bg-3 {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('https://images.unsplash.com/photo-1577896851231-70ef18881754?auto=format&fit=crop&w=1920');
    animation: fadeBackground 28s infinite 14s, zoomEffect 15s infinite alternate 14s;
}

.bg-4 {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1920');
    animation: fadeBackground 28s infinite 21s, zoomEffect 15s infinite alternate 21s;
}

@keyframes fadeBackground {
    0%, 20% { opacity: 1; }
    23%, 25% { opacity: 0.8; }
    28%, 95% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes zoomEffect {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes slideMessage {
    0%, 12% {
        opacity: 0;
        transform: translate(-50%, 30px);
    }
    15%, 26% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    29%, 100% {
        opacity: 0;
        transform: translate(-50%, -30px);
    }
}

.message:nth-child(2) { animation-delay: 5s; }
.message:nth-child(3) { animation-delay: 10s; }
.message:nth-child(4) { animation-delay: 15s; }
.message:nth-child(5) { animation-delay: 20s; }
.message:nth-child(6) { animation-delay: 25s; }
.message:nth-child(7) { animation-delay: 30s; }

/* Feature Cards */
.feature-card {
    transition: var(--transition-base);
    background: var(--bg-white);
    border: none;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--hover-shadow);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.feature-icon-overlay {
    font-size: 3rem;
    color: white;
    transform: scale(0.5);
    transition: var(--transition-base);
}

.feature-card:hover .card-overlay {
    opacity: 0.9;
}

.feature-card:hover .feature-icon-overlay {
    transform: scale(1);
}

.feature-card:hover .card-img-top {
    transform: scale(1.1);
}

.card-body {
    padding: 1.5rem;
}

.card-body h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.6;
}

/* Teacher Section - Version améliorée et colorée */
.teacher-community-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f8ff 100%);
    position: relative;
    overflow: hidden;
}

.teacher-community-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(0, 154, 119, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(0, 123, 255, 0.05) 0%, transparent 50%);
    z-index: 0;
    animation: backgroundMove 20s ease-in-out infinite;
}

@keyframes backgroundMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-10px, -10px) rotate(1deg); }
    50% { transform: translate(-20px, 10px) rotate(-1deg); }
    75% { transform: translate(10px, -5px) rotate(0.5deg); }
}

.teacher-community-section .container {
    position: relative;
    z-index: 1;
}

/* Icône principale avec animations */
.main-teacher-icon-container {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

.icon-background {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 154, 119, 0.3);
    position: relative;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.main-teacher-icon {
    font-size: 3rem;
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.floating-icon-1 {
    top: -20px;
    right: -10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    animation: float 2s ease-in-out infinite reverse;
}

.floating-icon-2 {
    bottom: -10px;
    left: -20px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    animation: float 2.5s ease-in-out infinite;
}

.floating-icon-3 {
    top: 10px;
    left: -30px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    animation: float 3s ease-in-out infinite reverse;
}

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

/* Titre avec gradient */
.text-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #667eea, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Cards modernes des fonctionnalités */
.teacher-feature-card {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.teacher-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #667eea, var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.teacher-feature-card:hover::before {
    transform: scaleX(1);
}

.teacher-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Icônes des fonctionnalités avec gradients colorés */
.feature-icon-wrapper {
    position: relative;
    flex-shrink: 0;
}

.feature-icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: var(--transition-base);
}

.feature-icon {
    font-size: 2.5rem;
    color: white;
    transition: var(--transition-base);
}

.teacher-feature-card:hover .feature-icon-circle {
    transform: scale(1.1) rotate(10deg);
}

.teacher-feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Gradients colorés pour les icônes */
.gradient-blue {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.gradient-green {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    box-shadow: 0 10px 30px rgba(17, 153, 142, 0.4);
}

.gradient-purple {
    background: linear-gradient(135deg, #8360c3, #2ebf91);
    box-shadow: 0 10px 30px rgba(131, 96, 195, 0.4);
}

.gradient-orange {
    background: linear-gradient(135deg, #fa709a, #fee140);
    box-shadow: 0 10px 30px rgba(250, 112, 154, 0.4);
}

/* Décorations des icônes */
.icon-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.decoration-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.dot-1 { top: 20px; right: 15px; animation-delay: 0s; }
.dot-2 { bottom: 20px; left: 15px; animation-delay: 0.5s; }
.dot-3 { top: 50%; right: 5px; animation-delay: 1s; }

.decoration-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    animation: pulse 3s ease-in-out infinite;
}

.line-1 {
    width: 30px;
    height: 2px;
    top: 30px;
    right: 10px;
    transform: rotate(45deg);
}

.line-2 {
    width: 20px;
    height: 2px;
    bottom: 30px;
    left: 15px;
    transform: rotate(-30deg);
    animation-delay: 1s;
}

.decoration-ring {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: spin 8s linear infinite;
}

.ring-1 {
    width: 120px;
    height: 120px;
    top: -10px;
    left: -10px;
}

.ring-2 {
    width: 140px;
    height: 140px;
    top: -20px;
    left: -20px;
    animation-direction: reverse;
    animation-duration: 12s;
}

.decoration-spark {
    position: absolute;
    font-size: 1.2rem;
    animation: sparkle 2s ease-in-out infinite;
}

.spark-1 { top: 10px; right: 10px; animation-delay: 0s; }
.spark-2 { bottom: 15px; left: 10px; animation-delay: 0.7s; }
.spark-3 { top: 50%; right: 5px; animation-delay: 1.4s; }

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

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

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.7; }
}

/* Contenu des fonctionnalités */
.feature-content {
    flex: 1;
}

.feature-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-description {
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Tags des fonctionnalités */
.feature-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.feature-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 154, 119, 0.2);
    transition: var(--transition-base);
}

.feature-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 154, 119, 0.3);
}

/* Section des statistiques */
.community-stats {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(241, 248, 255, 0.8));
    border-radius: var(--border-radius-xl);
    padding: 3rem;
    margin-top: 4rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stat-card {
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 154, 119, 0.2);
    animation: float 3s ease-in-out infinite;
}

.stat-card:nth-child(2) .stat-icon { animation-delay: 0.5s; }
.stat-card:nth-child(3) .stat-icon { animation-delay: 1s; }
.stat-card:nth-child(4) .stat-icon { animation-delay: 1.5s; }

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive pour la section enseignants */
@media (max-width: 991px) {
    .teacher-feature-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem;
    }

    .feature-icon-circle {
        width: 80px;
        height: 80px;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .floating-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .community-stats {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .main-teacher-icon-container {
        transform: scale(0.8);
    }

    .teacher-feature-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .feature-title {
        font-size: 1.2rem;
    }
}));
transition: var(--transition-base);
}

.teacher-main-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

.teacher-feature {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.teacher-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: var(--transition-base);
    z-index: 0;
}

.teacher-feature:hover::before {
    opacity: 0.05;
}

.teacher-feature:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
}

.feature-icon-container {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 120px;
    position: relative;
    z-index: 1;
    transition: var(--transition-base);
}

.teacher-feature:hover .feature-icon-container {
    transform: scale(1.1) rotate(10deg);
}

.feature-icon-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.feature-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.feature-content h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.feature-content p {
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
    line-height: 1.6;
}

/* Registration Section */
.registration-section {
    background: var(--bg-light);
    min-height: 100vh;
}

.registration-image {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(0, 129, 101, 0.9)),
    url('https://images.unsplash.com/photo-1517842645767-c639042777db?auto=format&fit=crop&q=80') center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.registration-content {
    text-align: center;
    color: white;
    max-width: 500px;
    padding: 2rem;
}

.registration-badge {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.registration-badge i {
    font-size: 2rem;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

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

.stat-item h4 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 500;
}

.registration-form-container {
    background: var(--bg-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 3rem;
}

.registration-form-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.registration-title {
    text-align: center;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.input-group {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(0, 154, 119, 0.1);
    transform: translateY(-2px);
}

.input-group-text {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    padding: 0.75rem 1rem;
}

.form-control,
.form-select {
    border: none;
    padding: 0.75rem 1rem;
    font-weight: 500;
    background: var(--bg-white);
    transition: var(--transition-base);
}

.form-control:focus,
.form-select:focus {
    border: none;
    box-shadow: none;
    background: var(--bg-light);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Form Validation */
.form-feedback {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition-base);
    z-index: 10;
}

.form-feedback.show {
    opacity: 1;
    transform: translateY(0);
}

.form-feedback.error {
    color: var(--danger-color);
    background: #ffe6e6;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--danger-color);
}

.form-feedback.success {
    color: var(--success-color);
    background: #e6ffe6;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--success-color);
}

.form-group.has-error .input-group {
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.form-group.has-success .input-group {
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.strength-fill {
    height: 100%;
    transition: var(--transition-base);
    width: 0%;
}

.strength-fill.weak {
    background: var(--danger-color);
    width: 25%;
}

.strength-fill.fair {
    background: var(--warning-color);
    width: 50%;
}

.strength-fill.good {
    background: var(--info-color);
    width: 75%;
}

.strength-fill.strong {
    background: var(--success-color);
    width: 100%;
}

.strength-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Toggle Password */
.toggle-password {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 0.75rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.toggle-password:hover {
    color: var(--primary-color);
    background: var(--bg-light);
}

/* Submit Buttons */
.registration-submit-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.login-submit-btn {
    position: relative;
    overflow: hidden;
}

.btn-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1497864149936-d3163f0c0f4b?auto=format&fit=crop&w=1920') center/cover;
    opacity: 0.1;
    filter: blur(3px);
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
}

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

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: inline;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: var(--transition-base);
    padding: 0.25rem 0;
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
}

.footer-form .input-group-text {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.footer-form .form-control,
.footer-form .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.footer-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.btn-footer-submit {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    transition: var(--transition-base);
}

.btn-footer-submit:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* Modal */
.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 700;
    color: white;
}

.btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border: none;
    padding: 1.5rem 2rem;
    background: var(--bg-light);
}

/* Responsive Design */
@media (max-width: 991px) {
    .registration-image {
        min-height: 400px;
    }

    .registration-form-container {
        padding: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .teacher-feature {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .feature-icon-container {
        min-width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .banner-section {
        height: 80vh;
    }

    .banner-messages {
        height: 120px;
    }

    .message {
        font-size: clamp(1.2rem, 5vw, 2rem);
    }

    .banner-cta {
        margin-top: 2rem;
    }

    .banner-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .btn-nav {
        padding: 0.35rem 1rem;
        font-size: 0.8rem;
    }

    .registration-form-container {
        padding: 1.5rem;
    }

    .registration-title {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .stat-item h4 {
        font-size: 1.5rem;
    }

    .footer-title {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .btn-nav {
        padding: 0.25rem 0.75rem;
        font-size: 0.75rem;
    }

    .brand-text {
        font-size: 1.2rem;
    }

    .logo-container {
        width: 35px;
        height: 35px;
    }

    .registration-content {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
}

/* Loading States */
.btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn.loading .btn-text {
    opacity: 0;
}

.btn.loading .btn-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.shadow-primary {
    box-shadow: 0 0.5rem 2rem rgba(0, 154, 119, 0.15);
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -30px, 0);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0,-4px,0);
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* Google OAuth Button */
.btn-outline-danger {
    border: 2px solid #dc3545;
    color: #dc3545;
    transition: var(--transition-base);
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

.btn-outline-danger svg {
    transition: var(--transition-base);
}

.btn-outline-danger:hover svg path {
    fill: white;
}
