:root {
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --bg-light: #f1f5f9;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --input-bg: #f8fafc;
    --input-border: #e2e8f0;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: #f0f7fb;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    display: block;
}

/* Background Blobs (Filtered for Light Theme) */
.bg-blob {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.3;
    animation: blobMove 25s infinite alternate;
}

.blob-1 {
    background: #d4eaf5;
    top: -100px;
    left: -100px;
}

.blob-2 {
    background: #e0e7ff;
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    background: #f0fdf4;
    top: 40%;
    left: 30%;
    width: 400px;
    height: 400px;
    animation-delay: -10s;
}

@keyframes blobMove {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Split Wrapper */
.login-page-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Section: Form */
.login-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 60px;
    justify-content: center;
    /* Center vertically */
    align-items: center;
    /* Center horizontally */
    background: linear-gradient(rgba(240, 247, 251, 0.7), rgba(240, 247, 251, 0.7)), url('/assets/images/student-login-bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 10;
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center horizontally */
    gap: 12px;
    margin-bottom: 30px;
    /* Space above card */
    width: 100%;
}

.logo-signature {
    font-family: 'Italianno', cursive;
    font-weight: 400;
    font-size: 2.5rem;
    color: var(--text-primary);
}

.login-brand .logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.login-brand .highlight {
    color: #2896cd;
}

.login-card-v2 {
    width: 100%;
    max-width: 440px;
    background: white;
    padding: 50px 40px;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(40, 150, 205, 0.1);
}

.login-card-v2 .header {
    margin-bottom: 35px;
    text-align: center;
    /* Center header text */
}

.login-card-v2 .header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
}

.login-card-v2 .header p {
    font-size: 15px;
    color: var(--text-secondary);
}

.login-footer-v2 {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
    justify-content: center;
    line-height: 1.6;
}

.login-footer-v2 a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

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

/* Right Section: Hero */
.login-hero-v2 {
    flex: 1.2;
    background: #f0f7fb;
    display: flex;
    align-items: center;
    padding: 100px;
    position: relative;
    overflow: hidden;
    border-left: 1px solid rgba(40, 150, 205, 0.1);
}

/* Subtle pattern for the right side */
.login-hero-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(rgba(40, 150, 205, 0.15) 1.5px, transparent 1.5px),
        linear-gradient(rgba(40, 150, 205, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(40, 150, 205, 0.05) 1px, transparent 1px);
    background-size: 30px 30px, 120px 120px, 120px 120px;
    background-position: center;
    opacity: 0.8;
}

.hero-content-v2 {
    max-width: 100%;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

/* Section Titles */
.hero-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* ============================================
   Testimonials Marquee (Same as Website)
   ============================================ */
.testimonials-marquee {
    width: calc(100% + 200px);
    margin-left: -100px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
    animation: scroll-left 40s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.testimonial-card-mini {
    width: 280px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 247, 251, 0.9) 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(40, 150, 205, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.testimonial-card-mini:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(40, 150, 205, 0.12);
}

.tcard-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tcard-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, #6C5CE7 100%);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.tcard-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.tcard-info span {
    font-size: 11px;
    color: var(--text-secondary);
}

.testimonial-card-mini p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   Featured Courses Grid
   ============================================ */
.featured-courses {
    padding: 0 20px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.course-chip {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 14px 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(40, 150, 205, 0.1);
    transition: all 0.3s ease;
}

.course-chip:hover {
    transform: translateY(-3px);
    border-color: rgba(40, 150, 205, 0.3);
    box-shadow: 0 8px 20px rgba(40, 150, 205, 0.1);
}

.course-chip i {
    width: 28px;
    height: 28px;
    background: rgba(40, 150, 205, 0.1);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.course-chip span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Hero Badge (ISO Certification) */
.hero-badge {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: white;
    padding: 10px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    z-index: 10;
}

.hero-badge i {
    color: #22c55e;
}

/* Mobile Adjustments (Student Portal) */
@media (max-width: 1024px) {
    .login-hero-v2 {
        display: none;
    }

    .login-container {
        padding: 40px 20px;
    }

    .login-card-v2 {
        margin: auto auto;
    }
}


/* Brand Section */
.brand {
    text-align: center;
    margin-bottom: 35px;
}

.logo-box {
    width: 54px;
    height: 54px;
    background: var(--primary);
    margin: 0 auto 15px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.brand h1 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
}

.highlight {
    color: var(--primary);
}

.tagline {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 4px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Steps */
.login-step {
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    margin-bottom: 25px;
    text-align: center;
}

.header h2 {
    color: var(--text-primary);
    font-size: 20px;
    margin-bottom: 6px;
    font-weight: 700;
}

.header p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Form Styles */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.input-group label .required {
    color: #ef4444;
    font-weight: 700;
}

/* WhatsApp Support Button */
.support-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.support-footer span {
    font-size: 13px;
    color: var(--text-secondary);
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: white !important;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    text-decoration: none !important;
}

.whatsapp-btn i {
    font-size: 16px;
}


.input-wrapper {
    position: relative;
    background: var(--input-bg);
    border-radius: 12px;
    border: 1.5px solid var(--input-border);
    transition: var(--transition);
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 15px;
}

.input-wrapper input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 14px 15px 14px 42px;
    color: var(--text-primary);
    outline: none;
    font-size: 15px;
    font-weight: 500;
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
}

/* Button */
.btn-primary {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    margin-bottom: 12px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
}

/* OTP UI */
.sent-to-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    margin-top: 15px;
    font-weight: 500;
}

.otp-input-wrapper {
    display: flex;
    justify-content: space-between;
    margin: 25px 0;
    gap: 8px;
}

.otp-box {
    width: 46px;
    height: 56px;
    background: var(--input-bg);
    border-radius: 12px;
    border: 1.5px solid var(--input-border);
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

.otp-box:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
}

.resend-timer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    margin: 15px 0;
}

.resend-timer button {
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
}

.btn-back {
    width: 100%;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    font-size: 13px;
    cursor: pointer;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

.btn-back:hover {
    color: var(--text-primary);
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: modalSlide 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-lg);
}

@keyframes modalSlide {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 24px;
}

.modal-icon.warning {
    background: #fff7ed;
    color: var(--warning);
}

.modal-icon.danger {
    background: #fef2f2;
    color: var(--error);
}

.modal-icon.success {
    background: #f0fdf4;
    color: var(--success);
}

.modal-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-confirm {
    background: var(--primary);
    color: white;
}

.btn-confirm:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--text-primary);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    z-index: 3000;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.toast.error {
    background: var(--error);
}

.toast.success {
    background: var(--success);
}

/* Footers */
.support-footer {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.social-links {
    margin-top: 10px;
}

.social-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}