:root {
    --primary-dark: #1a1a1a;
    --secondary-dark: #2d2d2d;
    --accent-orange: #ff6b35;
    --accent-purple: #6b46c1;
    --accent-green: #10b981;
    --accent-blue: #3b82f6;
    --text-light: #e5e7eb;
    --text-muted: #9ca3af;
    --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #f59e0b 100%);
    --gradient-secondary: linear-gradient(135deg, #6b46c1 0%, #8b5cf6 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --shadow-glow: 0 0 30px rgba(255, 107, 53, 0.3);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-button: 0 8px 25px rgba(255, 107, 53, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--primary-dark);
    color: var(--text-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

/* LOGIN PAGE STYLES */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    z-index: -1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--gradient-secondary);
    top: 60%;
    right: 20%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--accent-green);
    bottom: 20%;
    left: 30%;
    animation-delay: 10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    background: var(--accent-blue);
    top: 10%;
    right: 40%;
    animation-delay: 15s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(90deg);
    }

    50% {
        transform: translateY(-40px) rotate(180deg);
    }

    75% {
        transform: translateY(-20px) rotate(270deg);
    }
}

.login-card {
    background: var(--secondary-dark);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 400;
}

.login-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 15px 18px;
    background: var(--primary-dark);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    width: 100%;
    box-shadow: var(--shadow-button);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-glow {
    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 ease;
}

.btn-primary:hover .btn-glow {
    left: 100%;
}

.login-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.login-footer p {
    margin-bottom: 6px;
}

.link-secondary {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.link-secondary:hover {
    color: var(--accent-purple);
}

.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* COURSES PAGE STYLES */
.courses-container {
    min-height: 100vh;
    background: var(--primary-dark);
}

.courses-header {
    background: var(--gradient-dark);
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-left {
    flex: 1;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.site-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.header-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-orange);
}

.courses-main {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--secondary-dark);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.course-card-header {
    padding: 20px 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.course-content {
    padding: 20px 25px;
    flex: 1;
}

.course-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-light);
}

.course-description {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

.course-footer {
    padding: 0 25px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.course-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-green);
}

.btn-course {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 25px;
    flex-shrink: 0;
}

.btn-course:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-button);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .header-right {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .login-card {
        padding: 30px 20px;
    }

    .login-title {
        font-size: 2rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .course-footer {
        flex-direction: column;
        gap: 15px;
    }

    .btn-course {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .login-title {
        font-size: 1.8rem;
    }

    .site-title {
        font-size: 2rem;
    }

    .course-card {
        margin: 0 10px;
    }
}