/* ==================================================
   Caroflare LMS - Premium Light SaaS Theme
   ================================================== */
:root {
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --primary: #7c3aed;
    --primary-hover: #6d28d9;
    --accent: #9333ea;
    --text-dark: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --danger: #ef4444;
    --success: #10b981;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif; 
}

/* Zero Horizontal & Vertical Scroll for Laptops */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg-main);
    color: var(--text-body);
}

a { 
    color: var(--primary); 
    text-decoration: none; 
    font-weight: 600;
    transition: all 0.2s ease;
}

a:hover { 
    color: var(--primary-hover);
    text-decoration: underline; 
}

/* ==================================================
   Zero-Scroll Laptop Login Page Layout
   ================================================== */
.login-page {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background: #ffffff;
}

/* Left Hero Banner Section with Ambient Light Glow */
.login-hero {
    flex: 1.25;
    background: radial-gradient(circle at 10% 20%, rgba(243, 232, 255, 0.8) 0%, rgba(238, 242, 255, 0.5) 50%, #f8fafc 100%);
    border-right: 1px solid var(--border-color);
    padding: 32px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Background Subtle Dot Pattern Overlay */
.login-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.35;
    pointer-events: none;
}

/* Caroflare Branding */
.caroflare-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.logo-badge {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(124, 58, 237, 0.28);
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: var(--text-dark);
}

.logo-text span {
    color: var(--primary);
}

.hero-content {
    margin: auto 0;
    z-index: 2;
}

.hero-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: -0.8px;
}

.hero-title span {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.55;
    max-width: 500px;
    margin-bottom: 18px;
}

/* Feature List */
.feature-list {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
    padding-top:40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.7);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(8px);
}

.feature-icon {
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 10px;
}

/* Large & Attractive Vector Box */
.illustration-container {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin-top: 5px;
  
}

.illustration-container svg {
    width: 100%;
    height: auto;
    max-height: 250px;
    filter: drop-shadow(0 20px 30px rgba(124, 58, 237, 0.12));
}

/* Floating Stats Badge on Left Graphic */
.floating-badge {
    position: absolute;
    bottom: 12px;
    right: 10px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    animation: floatAnim 3s ease-in-out infinite alternate;
}

@keyframes floatAnim {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-6px); }
}

.floating-badge-icon {
    width: 28px;
    height: 28px;
    background: #d1fae5;
    color: #059669;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.floating-badge-text h4 { font-size: 12px; color: var(--text-dark); font-weight: 700; }
.floating-badge-text p { font-size: 10px; color: var(--text-muted); }

/* Right Form Area */
.login-form-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 50px;
    background: #ffffff;
}

.login-card-full {
    width: 100%;
    max-width: 380px;
}

.login-header {
    margin-bottom: 26px;
}

.login-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.6px;
}

.login-header p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Forms & Inputs */
.form-group { margin-bottom: 18px; }
.form-group label { 
    display: block; 
    margin-bottom: 6px; 
    font-size: 13px; 
    font-weight: 600;
    color: var(--text-dark); 
}

.form-group input { 
    width: 100%; 
    padding: 12px 15px; 
    background: #ffffff; 
    border: 1.5px solid var(--border-color); 
    border-radius: 10px; 
    color: var(--text-dark); 
    outline: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.form-group input::placeholder { color: #94a3b8; }

.btn { 
    display: inline-block; 
    width: 100%;
    padding: 12px 20px; 
    background: linear-gradient(135deg, var(--primary) 0%, #9333ea 100%); 
    color: #ffffff; 
    border: none; 
    border-radius: 10px; 
    cursor: pointer; 
    font-weight: 700; 
    font-size: 15px;
    text-align: center; 
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.btn:hover { 
    opacity: 0.96;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
    text-align: center;
    font-weight: 600;
}

.label-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.forgot-link {
    font-size: 12px;
    color: var(--primary);
}

.form-footer-text {
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.hero-footer {
    font-size: 10px;
    color: var(--text-muted);
    z-index: 2;
    padding-top:15px;
    text-align: center;
}

/* ==================================================
   Responsive Design for Mobile / Tablets
   ================================================== */
@media (max-width: 1024px) {
    .login-hero { padding: 30px; }
    .hero-title { font-size: 28px; }
    .illustration-container { max-width: 420px; }
    .feature-list { flex-direction: column; gap: 8px; }
}

@media (max-width: 768px) {
    .login-page {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }
    .login-hero {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 30px 20px;
    }
    .hero-title { font-size: 24px; }
    .illustration-container, .feature-list { display: none; }
    .login-form-area { padding: 40px 20px; }
}