:root {
    --bg-dark: #0f1016;
    --bg-panel: rgba(25, 27, 36, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.15);
    --accent-primary: #2563eb;
    --accent-secondary: #38bdf8;
    --accent-tertiary: #1d4ed8;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --glass-blur: blur(20px);
    --radius-lg: 24px;
    --radius-md: 12px;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Inter", sans-serif;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    overflow: hidden;
}

/* Background gradient blobs for the whole body */
body::before, body::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
}

body::before {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -200px;
    left: -200px;
}

body::after {
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    bottom: -100px;
    right: -100px;
}

.login-wrapper {
    width: 100%;
    max-width: 1000px;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.login-card {
    width: 100%;
    display: flex;
    flex-direction: row;
    background: var(--bg-panel);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* LEFT SIDE - BRANDING */
.login-brand {
    flex: 1;
    padding: 60px 50px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(0,0,0,0.2));
    overflow: hidden;
}

.brand-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
    animation: float 8s ease-in-out infinite alternate;
}

.blob-1 {
    width: 250px;
    height: 250px;
    background: var(--accent-primary);
    top: -50px;
    left: -50px;
}

.blob-2 {
    width: 200px;
    height: 200px;
    background: var(--accent-secondary);
    bottom: -50px;
    right: -50px;
    animation-delay: -4s;
}

@keyframes float {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(30px) scale(1.1); }
}

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

.brand-content h1 {
    margin: 0;
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff, var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-content h2 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 4px;
}

.brand-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 320px;
}

/* RIGHT SIDE - FORM */
.login-form-container {
    width: 450px;
    padding: 60px 50px;
    background: rgba(10, 10, 10, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.form-header h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-header p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background: rgba(0, 0, 0, 0.5);
}

.login-btn {
    width: 100%;
    padding: 16px;
    margin-top: 10px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
}

.login-btn:hover {
    background: var(--accent-tertiary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.login-btn:disabled {
    background: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 13px;
    text-align: center;
}

.footer-text {
    margin-top: 40px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

.loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsiveness for smaller screens if needed */
@media (max-width: 850px) {
    .login-card {
        flex-direction: column;
    }
    .login-brand {
        padding: 40px 30px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .login-form-container {
        width: 100%;
        padding: 40px 30px;
    }
}

