:root {
    --primary-gradient: linear-gradient(135deg, #0066FF 0%, #4f46e5 100%);
    --bg-light: #F9FAFB;
    --text-main: #111827;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --brand-bg: #0F172A;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    background-color: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px; /* Padding for mobile card feel */
}

@media (min-width: 900px) {
    body {
        padding: 0;
    }
}

.login-container {
    width: 100%;
    max-width: 450px; /* Mobile width */
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

@media (min-width: 900px) {
    .login-container {
        max-width: 1100px;
        height: 720px;
        border-radius: 40px;
        flex-direction: row;
    }
}

.split-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

@media (min-width: 900px) {
    .split-layout {
        flex-direction: row;
    }
}

/* Left Panel (Brand & Animation) - HIDDEN ON MOBILE */
.brand-panel {
    display: none;
    background-color: var(--brand-bg);
    position: relative;
    padding: 60px;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    overflow: hidden;
}

@media (min-width: 900px) {
    .brand-panel {
        display: flex;
        flex: 1.1;
    }
}

/* Node Animation */
.node-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.3;
    pointer-events: none;
}

.node {
    position: absolute;
    width: 8px; height: 8px;
    background: #60a5fa;
    border-radius: 50%;
    box-shadow: 0 0 15px #60a5fa;
}

.line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.2), transparent);
    height: 2px;
}

.pulse-bit {
    position: absolute;
    width: 4px; height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px white;
    filter: blur(1px);
}

@keyframes data-flow-h {
    0% { left: -10%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: 110%; opacity: 0; }
}

.brand-content {
    position: relative;
    z-index: 2;
}

.brand-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-panel h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 24px 0;
    letter-spacing: -0.04em;
}

.brand-panel h1 span {
    color: #60a5fa;
}

.brand-panel p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 400px;
    line-height: 1.6;
}

.brand-footer {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 2;
}

/* Right Panel (Form) */
.form-panel {
    background: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

@media (min-width: 900px) {
    .form-panel {
        flex: 0.9;
        padding: 50px 80px;
    }
}

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

@media (min-width: 900px) {
    .form-header {
        margin-bottom: 60px;
    }
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.logo-wrapper img {
    height: 36px;
}

@media (min-width: 900px) {
    .logo-wrapper img {
        height: 40px;
    }
}

.logo-wrapper span {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
}

@media (min-width: 900px) {
    .logo-wrapper span {
        font-size: 1.5rem;
    }
}

.form-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-body h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 24px 0;
    color: #111827;
    text-align: center;
}

@media (min-width: 900px) {
    .form-body h2 {
        font-size: 2.25rem;
        margin-bottom: 40px;
    }
}

.error-banner {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 600;
}

.input-field {
    margin-bottom: 16px;
}

.input-field input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
    background: #f9fafb;
}

@media (min-width: 900px) {
    .input-field input {
        padding: 18px 24px;
        border-radius: 20px;
    }
}

.input-field input:focus {
    outline: none;
    border-color: #0066FF;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.btn-signin {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
    margin-top: 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 102, 255, 0.2);
}

@media (min-width: 900px) {
    .btn-signin {
        padding: 18px;
        border-radius: 20px;
        margin-top: 24px;
    }
}

.btn-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 102, 255, 0.3);
}

.btn-signin svg {
    width: 20px;
    height: 20px;
}

.form-footer {
    margin-top: 40px;
}
