/* Index Page Styles */
:root {
    --primary: #2d6cdf;
    --primary-dark: #1a56c4;
    --secondary: #6a11cb;
    --success: #00b894;
    --danger: #ff6b6b;
    --warning: #feca57;
    --dark: #1e272e;
    --light: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #dfe4ea;
    --shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#banner {
    background: url(https://i.ibb.co/fG1yPs2J/busbg.jpg);
    background-size: cover;
    background-position: center;
    height: auto;
}

body {
    font-family: 'Poppins', sans-serif;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--dark); */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    padding: 30px 0;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: white;
}

.logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.logo p {
    font-size: 16px;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

.welcome-section {
    text-align: center;
    margin-bottom: 60px;
    color: white;
}

.welcome-section h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 15px;
}

.welcome-section p {
    font-size: 18px;
    opacity: 0.9;
}

/* Login Options */
.login-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
    perspective: 1000px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.driver-card::before {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.parent-card::before {
    background: linear-gradient(90deg, var(--success), #00a085);
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
}

.driver-card .card-icon {
    color: var(--primary);
}

.parent-card .card-icon {
    color: var(--success);
}

.login-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--dark);
    letter-spacing: -0.5px;
    position: relative;
}

.login-card p {
    color: var(--dark);
    opacity: 0.8;
    margin-bottom: 35px;
    line-height: 1.7;
    font-size: 16px;
    font-weight: 400;
}

.login-btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.driver-btn {
    background: var(--primary);
}

.driver-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.parent-btn {
    background: var(--success);
}

.parent-btn:hover {
    background: #00a085;
    transform: translateY(-2px);
}

/* Features Section */
.features-section {
    text-align: center;
    color: rgb(255, 255, 255);
}

.features-section h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item i {
    font-size: 36px;
    color: rgb(255, 255, 255);
    margin-bottom: 15px;
    display: block;
}

.feature-item h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-item p {
    opacity: 0.9;
    line-height: 1.6;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: rgb(255, 255, 255);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 60px;
}

.footer p {
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: bold;
    color: rgb(255, 255, 255);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 20px 0;
    }

    .logo {
        flex-direction: column;
        gap: 15px;
    }

    .logo h1 {
        font-size: 28px;
    }

    .logo p {
        font-size: 14px;
    }

    .welcome-section {
        margin-bottom: 40px;
    }

    .welcome-section h2 {
        font-size: 28px;
    }

    .welcome-section p {
        font-size: 16px;
    }

    .login-options {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 60px;
        perspective: none;
    }

    .login-card {
        padding: 40px 30px;
        transform-style: flat;
    }

    .login-card:hover {
        transform: translateY(-5px);
    }

    .card-icon {
        font-size: 48px;
    }

    .login-card h3 {
        font-size: 24px;
    }

    .features-section h3 {
        font-size: 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-item {
        padding: 25px 15px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .welcome-section h2 {
        font-size: 24px;
    }

    .login-card {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .login-card h3 {
        font-size: 22px;
    }

    .login-card p {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .login-btn {
        padding: 16px 24px;
        font-size: 16px;
        border-radius: 14px;
    }

    .features-section h3 {
        font-size: 20px;
    }

    .feature-item h4 {
        font-size: 18px;
    }
}

/* Interactive Elements */
.login-btn:active {
    transform: translateY(-1px);
}

/* Modern Focus States */
.login-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.3);
}

.driver-btn:focus {
    box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.4);
}

.parent-btn:focus {
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.4);
}

/* Loading State */
.login-btn.loading {
    pointer-events: none;
    position: relative;
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced Glassmorphism */
@supports (backdrop-filter: blur(20px)) {
    .login-card {
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.125);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .login-card {
        background: rgba(30, 39, 46, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }

    .login-card h3,
    .login-card p {
        color: #ffffff;
    }
}