/* ========== RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

/* ========== NAVBAR ========== */
.navbar {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

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

.welcome {
    color: #FFD700;
    font-weight: bold;
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.badge-driver { background: #FFD700; color: #1a1a2e; }
.badge-passenger { background: #17a2b8; color: white; }

/* ========== BUTTONS ========== */
.btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #FFD700;
    color: #FFD700;
}

.btn-outline:hover {
    background: #FFD700;
    color: #1a1a2e;
}

.btn-logout {
    background: rgba(220, 53, 69, 0.2);
    border: 2px solid #dc3545;
    color: #ff6b6b;
}

.btn-logout:hover {
    background: #dc3545;
    color: white;
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ========== HERO ========== */
.hero {
    min-height: calc(100vh - 70px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.hero-content { max-width: 800px; }

.hero h1 {
    font-size: 5rem;
    color: #FFD700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 4px 20px rgba(255, 215, 0, 0.5); }
    to { text-shadow: 0 4px 30px rgba(255, 215, 0, 0.8); }
}

.slogan {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.motto {
    font-size: 1rem;
    color: #FFD700;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
}

.feature-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.feature-text { color: #FFD700; font-weight: bold; }

/* ========== FLASH MESSAGES ========== */
.flash-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.flash {
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.flash-success { background: #28a745; color: white; }
.flash-error { background: #dc3545; color: white; }
.flash-info { background: #17a2b8; color: white; }
.flash-warning { background: #ffc107; color: #1a1a2e; }

.flash-close {
    cursor: pointer;
    margin-left: 1rem;
    font-size: 1.5rem;
    opacity: 0.7;
}

.flash-close:hover { opacity: 1; }

/* ========== AUTH PAGES ========== */
.auth-container {
    min-height: calc(100vh - 70px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.auth-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 16px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-box-wide { max-width: 700px; }

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.auth-header h2 {
    color: #FFD700;
    margin-bottom: 0.5rem;
}

.auth-header p { color: #aaa; }

/* ========== FORM ========== */
.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #FFD700;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #FFD700;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.form-group input::placeholder { color: #666; }

/* ========== ROLE SELECTOR ========== */
.role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.role-option input {
    display: none;
}

.role-card {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.role-option input:checked + .role-card {
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.role-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.role-title { font-weight: bold; color: #FFD700; font-size: 1.2rem; }
.role-desc { font-size: 0.85rem; color: #aaa; margin-top: 0.3rem; }

/* ========== AUTH FOOTER ========== */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #aaa;
}

.auth-footer a {
    color: #FFD700;
    font-weight: bold;
}

.auth-footer a:hover { text-decoration: underline; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .slogan { font-size: 1.3rem; }
    .form-row { grid-template-columns: 1fr; }
    .role-selector { grid-template-columns: 1fr; }
    .nav-links { gap: 0.5rem; }
    .nav-links .btn { padding: 0.5rem 1rem; font-size: 0.9rem; }
}
