@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #ec4899;
    --accent: #8b5cf6;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-main: #1f2937;
    --text-muted: #6b7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
}

body:has(.elearning-page) {
    overflow-y: auto;
    display: block;
}

body:not(:has(.elearning-page)) {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.container:not(.elearning-page) {
    width: 100%;
    height: 100vh;
    display: flex;
    position: relative;
    z-index: 1;
}

/* Background Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}
.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.3);
    top: -100px;
    left: -100px;
}
.shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(236, 72, 153, 0.3);
    bottom: -50px;
    right: -50px;
}

/* LEFT SECTION */
.left {
    flex: 1.2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: white;
}

.bg-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: -1;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
    z-index: -1;
}

.ad-content {
    max-width: 500px;
    animation: fadeInUp 1s ease;
}

.ad-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.ad-content h1 span {
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ad-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* RIGHT SECTION */
.right {
    flex: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-left: 1px solid var(--glass-border);
}

.form-container {
    width: 100%;
    max-width: 420px;
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

#msg {
    margin-bottom: 20px;
    min-height: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.4);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.05);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.forgot-link {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.toggle-link {
    margin-top: 25px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.toggle-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.toggle-link a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 1024px) {
    .left { display: none; }
    .right { flex: 1; background: none; }
    body { overflow-y: auto; }
}

@media (max-width: 480px) {
    .form-container { padding: 30px 20px; }
}

/* DASHBOARD & DEMO EXTENSIONS */
.elearning-page {
    position: relative;
    z-index: 1;
}

.elearning-page .hero-section {
    position: relative;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    overflow: hidden;
    color: white;
}

.elearning-page .hero-section .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(236, 72, 153, 0.4));
    z-index: -1;
}

.elearning-page .hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.elearning-page .hero-section h1 span {
    color: #fff;
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.elearning-page .hero-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.glass-pill {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    color: white;
    display: inline-flex;
}

.info-item i {
    color: rgba(255,255,255,0.7);
}

.btn-edit-profile {
    width: 35px;
    height: 35px;
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    border: none;
}

.btn-edit-profile:hover {
    transform: scale(1.1);
    background: var(--primary);
    color: white;
}

.icon-circle {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-outline.m-1 {
    width: auto;
    padding: 8px 16px;
    margin: 4px !important;
}

/* Demo Quiz Styles */
.demo-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.demo-options .option-btn {
    padding: 18px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    text-align: left;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
}

.demo-options .option-btn:hover {
    background: #f0f4ff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.1);
}

.demo-options .option-btn.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

/* Animations Helpers */
.animate-scale {
    animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
    .elearning-page .hero-section {
        padding: 40px 15px;
        border-radius: 20px;
    }
    .elearning-page .hero-section h1 {
        font-size: 1.8rem;
    }
    .glass-pill {
        border-radius: 20px;
        flex-direction: column;
        width: 100%;
        padding: 15px !important;
    }
    .info-item {
        margin: 5px 0 !important;
    }
    .demo-options {
        grid-template-columns: 1fr;
    }
}
