:root {
    --primary: #0f172a;       /* Deep Slate/Navy */
    --secondary: #1e3a8a;     /* Professional Corporate Blue */
    --accent: #2563eb;        /* Bright Active Blue */
    --light: #f8fafc;
    --dark: #020617;
    --text-muted: rgba(255, 255, 255, 0.7);
    --card-bg: rgba(255, 255, 255, 0.06);
    --input-bg: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Background Image Cover */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=1920') no-repeat center center;
    background-size: cover;
    opacity: 0.1; 
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1100px;
    min-height: 650px;
    margin: 2rem;
    display: flex;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Left Panel - Image Area */
.left-panel {
    flex: 1.1;
    position: relative;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.left-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0.65;
    transition: transform 0.5s ease;
}

.left-panel:hover img {
    transform: scale(1.03);
}

/* Corporate Gradient overlay layer on the image */
.left-panel::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(30, 58, 138, 0.4), rgba(15, 23, 42, 0.85));
    z-index: 1;
}

/* Right Panel - Login Form Area */
.right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    background: rgba(2, 6, 23, 0.2);
}

.login-card {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-logo {
    max-height: 60px;
    max-width: 220px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.login-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Error States */
.error-messages {
    background: rgba(228, 30, 38, 0.15);
    border-left: 4px solid #e41e26;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.error-messages p {
    color: #fca5a5;
    font-size: 0.95rem;
    margin: 0;
}

/* Form Inputs */
.input-group {
    position: relative;
    margin-bottom: 1.25rem;
    text-align: left;
}

.input-group .icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* MFA Choice Channels */
.verification-choice {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.choice-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.verification-choice label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 1.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.verification-choice label:hover {
    color: #fff;
}

.verification-choice input[type="radio"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Actions */
button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

button[type="submit"]:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

button[type="submit"]:active {
    transform: translateY(0);
}

.forgot {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    display: inline-block;
}

.forgot:hover {
    color: #fff;
    text-decoration: underline;
}

/* Responsive Adaptive Engine */
@media (max-width: 850px) {
    .left-panel {
        display: none; /* Hide illustrative frame on smaller form factors to keep workflow focus */
    }
    .container {
        max-width: 500px;
        min-height: auto;
    }
    .right-panel {
        padding: 3rem 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 1rem;
        border-radius: 16px;
    }
    .right-panel {
        padding: 2.5rem 1.5rem;
    }
    .verification-choice label {
        display: flex;
        margin-bottom: 0.5rem;
    }
}
