/* ═══════════════════════════════════════════════════════════════════════
   MDS Omni Platform — Split-Screen Login
   Left: Dynamic Cyber Network Canvas with Moving Green Pulse Particles
   Right: Modern Floating Enterprise Card matching user reference
   ═══════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

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

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #0f172a;
    background: #f8fafc;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.login-split-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════
   LEFT PANEL — Cyber Network Tech Canvas (~52% width)
   ═══════════════════════════════════════════════════════════════════════ */
.visual-tech-panel {
    flex: 1.15;
    background: #070c1b;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 52px 64px;
    overflow: hidden;
    color: #ffffff;
    user-select: none;
}

.visual-tech-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 25%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 65%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 50% 90%, rgba(37, 99, 235, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

#networkCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Brand Header */
.brand-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3), inset 0 0 10px rgba(14, 165, 233, 0.15);
}

.brand-badge-icon svg {
    width: 22px;
    height: 22px;
}

.brand-badge-text {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
}

/* Headline & Stats */
.visual-content-bottom {
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin-top: auto;
    padding-top: 40px;
}

.visual-headline {
    font-family: 'Outfit', sans-serif;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.6px;
    color: #ffffff;
    margin-bottom: 16px;
}

.visual-subhead {
    font-size: 15px;
    line-height: 1.62;
    color: #94a3b8;
    margin-bottom: 44px;
    font-weight: 400;
}

.visual-stats-row {
    display: flex;
    align-items: flex-start;
    gap: 48px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-val {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #00f2fe;
}

.stat-val.accent-green {
    color: #10b981;
}

.stat-tag {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.1px;
}

/* ═══════════════════════════════════════════════════════════════════════
   RIGHT PANEL — Clean Floating Card matching User Screenshot
   ═══════════════════════════════════════════════════════════════════════ */
.form-panel {
    flex: 1;
    background: #f4f6fb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    position: relative;
    z-index: 5;
}

/* Floating White Card */
.form-card {
    width: 100%;
    max-width: 500px; /* Increased card width so input boxes have generous length */
    background: #ffffff;
    border-radius: 28px;
    padding: 50px 46px 42px;
    box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.09), 0 0 1px 1px rgba(15, 23, 42, 0.04);
    text-align: center;
}

/* Centered Header */
.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 14.5px;
    color: #8da2b5;
    line-height: 1.5;
}

/* Alerts */
.login-alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    animation: fadeIn 0.2s ease;
}

.login-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.login-alert-danger, .login-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-close-btn {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    padding: 0;
}

.alert-close-btn:hover {
    opacity: 1;
}

/* Input Fields (Soft filled grey-blue #eff4fb with rounded corners) */
.input-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.input-label {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 9px;
    letter-spacing: 0.1px;
}

.input-field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.field-icon {
    position: absolute;
    left: 18px;
    color: #8da2b5;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.field-icon svg {
    width: 20px;
    height: 20px;
}

.input-control {
    width: 100%;
    height: 54px; /* Increased length and height */
    padding: 0 20px 0 52px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #0f172a;
    background: #eff4fb;
    border: 1.5px solid transparent;
    border-radius: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.input-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.input-control:focus {
    background: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.input-control:focus + .field-icon,
.input-field-wrapper:focus-within .field-icon {
    color: #4f46e5;
}

.toggle-eye-btn {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #8da2b5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    transition: color 0.2s ease;
}

.toggle-eye-btn:hover {
    color: #475569;
}

/* Primary Button (Vibrant Indigo-Blue #4f46e5 with soft shadow) */
.btn-primary-auth {
    width: 100%;
    height: 54px;
    background: #4f46e5;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px -4px rgba(79, 70, 229, 0.38);
}

.btn-primary-auth:hover {
    box-shadow: 0 12px 24px -4px rgba(79, 70, 229, 0.48);
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.btn-primary-auth:active {
    transform: translateY(0);
}

.btn-primary-auth:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Footer Badge */
.form-footer-note {
    margin-top: 30px;
    font-size: 12.5px;
    color: #8da2b5;
    line-height: 1.6;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .login-split-container {
        flex-direction: column;
    }
    .visual-tech-panel {
        padding: 40px 32px;
        min-height: 420px;
    }
    .visual-headline {
        font-size: 32px;
    }
    .visual-stats-row {
        gap: 28px;
    }
    .form-panel {
        padding: 40px 20px;
    }
}

@media (max-width: 640px) {
    .visual-tech-panel {
        display: none;
    }
    .form-panel {
        min-height: 100vh;
        padding: 24px 16px;
        background: #f8fafc;
    }
    .form-card {
        padding: 36px 24px 30px;
        border-radius: 20px;
    }
}
