:root {
    --navy: #0a1628;
    --navy-light: #132240;
    --navy-medium: #1a3050;
    --red: #c41e3a;
    --red-hover: #a01830;
    --yellow: #ffd700;
    --green: #22c55e;
    --white: #ffffff;
    --gray: #e5e7eb;
    --gray-dark: #374151;
    --text-muted: #9ca3af;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--navy);
    min-height: 100vh;
    color: var(--white);
}

/* Login Page */
.container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.brand-side {
    flex: 1;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.brand-side::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 500px;
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 4px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.brand-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 10px;
    color: var(--white);
}

.brand-title span {
    color: var(--red);
}

.brand-subtitle {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--yellow);
    margin-bottom: 30px;
}

.brand-tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--white);
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.badge {
    display: inline-block;
    background: var(--yellow);
    color: var(--navy);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Form Side */
.form-side {
    flex: 1;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

.form-container {
    width: 100%;
    max-width: 420px;
}

.form-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 10px;
}

.form-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    background: var(--gray);
    border-radius: 10px;
    padding: 5px;
}

.tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tab.active {
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-label span {
    color: var(--red);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray);
    border-radius: 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(10, 22, 40, 0.1);
}

.forgot-password {
    text-align: right;
    margin-bottom: 20px;
}

.forgot-password a {
    color: var(--red);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover:not(:disabled) {
    background: var(--red-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray);
}

.divider span {
    padding: 0 15px;
}

.social-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-btn {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--gray);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
    font-weight: 600;
    color: var(--navy);
}

.social-btn:hover {
    border-color: var(--navy);
    transform: translateY(-2px);
}

.social-btn svg {
    width: 22px;
    height: 22px;
}

.form-footer {
    text-align: center;
    margin-top: 25px;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
}

.signup-fields {
    display: none;
}

.signup-fields.active {
    display: block;
}

/* Messages */
.message {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.message.error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.message.success {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* ==================== DASHBOARD ==================== */
.header {
    background: var(--navy-light);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--red);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: white;
}

.logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: white;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--red), var(--yellow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    cursor: pointer;
}

.logout-btn {
    background: transparent;
    border: 2px solid var(--text-muted);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-btn:hover {
    border-color: var(--red);
    color: var(--red);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--navy-medium) 0%, var(--navy) 100%);
    padding: 60px 40px;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: white;
    margin-bottom: 10px;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Stats */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 30px 40px;
    background: var(--navy-light);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.stat {
    text-align: center;
}

.stat-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--yellow);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Main Content */
.main {
    padding: 50px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: white;
    margin-bottom: 30px;
}

.section-title span {
    color: var(--red);
}

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.course-card {
    background: var(--navy-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: var(--red);
}

.course-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 4rem;
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--yellow);
    color: var(--navy);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.course-content {
    padding: 25px;
}

.course-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 5px;
}

.course-subtitle {
    color: var(--yellow);
    font-weight: 600;
    margin-bottom: 15px;
}

.course-features {
    list-style: none;
    margin-bottom: 20px;
}

.course-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.course-features li::before {
    content: '✓';
    color: var(--green);
    font-weight: bold;
}

.progress-bar {
    height: 8px;
    background: var(--navy);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red), var(--yellow));
    border-radius: 10px;
    transition: width 0.5s ease;
}

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

.course-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    margin-top: 15px;
}

.course-btn:hover {
    background: var(--red-hover);
}

/* Help Box */
.help-box {
    background: linear-gradient(135deg, var(--navy-light), var(--navy-medium));
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
}

.help-box h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 5px;
}

.help-box p {
    color: var(--text-muted);
}

.help-btn {
    padding: 12px 25px;
    background: white;
    color: var(--navy);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.help-btn:hover {
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--navy-light);
    padding: 30px 40px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 50px;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 968px) {
    .container {
        flex-direction: column;
    }

    .brand-side {
        padding: 40px 30px;
        min-height: auto;
    }

    .brand-title {
        font-size: 3rem;
    }

    .brand-subtitle {
        font-size: 1.8rem;
    }

    .form-side {
        padding: 40px 30px;
    }

    .header {
        padding: 15px 20px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .nav {
        gap: 15px;
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .stats-bar {
        gap: 30px;
        flex-wrap: wrap;
    }

    .main {
        padding: 30px 20px;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .help-box {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}
