/* ClassSync — Public pages (landing, login) — original design */

:root {
    --primary-green: #28a745;
    --dark-green: #1e7e34;
    --light-green: #d4edda;
    --accent-green: #34ce57;
    --public-gradient: linear-gradient(135deg, #667eea 0%, #28a745 100%);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(50px, 50px) rotate(180deg); }
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Landing hero */
.hero-section {
    background: var(--public-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite ease-in-out;
}

.hero-section::before {
    width: 400px;
    height: 400px;
    top: -150px;
    left: -150px;
}

.hero-section::after {
    width: 300px;
    height: 300px;
    bottom: -100px;
    right: -100px;
    animation-delay: 10s;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.hero-logo-container {
    display: inline-block;
    margin-bottom: 40px;
}

.hero-logo {
    max-width: 600px;
    width: 100%;
    height: auto;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 300;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero,
.btn-cta {
    background: white;
    color: var(--primary-green);
    padding: 15px 50px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-hero:hover,
.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    color: var(--dark-green);
}

/* Features */
.features-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--primary-green);
    margin-bottom: 25px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.feature-description {
    color: #6c757d;
    line-height: 1.6;
    font-size: 1rem;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.btn-cta {
    font-size: 1.3rem;
    padding: 18px 60px;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-text {
    margin: 0;
    opacity: 0.8;
}

/* Login */
body.login-body {
    background: var(--public-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

body.login-body::before,
body.login-body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite ease-in-out;
    pointer-events: none;
}

body.login-body::before {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
}

body.login-body::after {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
    animation-delay: 10s;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    z-index: 1;
    position: relative;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 40px;
    animation: slideUp 0.6s ease-out;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 25px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.login-card .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.login-card .form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

.login-card .input-group-text {
    background: var(--light-green);
    border: 2px solid #e9ecef;
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: var(--primary-green);
}

.login-card .input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.login-card .input-group:focus-within .input-group-text {
    border-color: var(--primary-green);
    background: rgba(40, 167, 69, 0.1);
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
    color: white;
}

.login-card .alert {
    border-radius: 10px;
    border: none;
    animation: shake 0.5s;
}

.login-info {
    margin-top: 25px;
    padding: 15px;
    background: var(--light-green);
    border-radius: 10px;
    border-left: 4px solid var(--primary-green);
}

.login-info p {
    margin: 0;
    color: var(--dark-green);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .hero-logo {
        max-width: 400px;
        padding: 25px;
    }

    .section-title,
    .cta-title {
        font-size: 2rem;
    }

    .feature-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .login-card {
        padding: 30px 20px;
    }

    .login-logo {
        max-width: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
