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

body {
    background-color: #f4f7f6;
    min-height: 100vh; /* Changed height to min-height to prevent clipping on small screens */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px; /* Adds breathing room around the card on mobile devices */
}

.container {
    display: flex;
    width: 100%; /* Default fluid width for smaller devices */
    max-width: 900px; /* Replaces hardcoded 900px so it downscales gracefully */
    min-height: 550px; /* Swapped from static height to allow vertical breathing room */
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Left Side Panel (Illustration) */
.left-panel {
    flex: 1;
    background-color: #e3fafc;
    display: flex;
    justify-content: center;
    align-items: center;
}

.left-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Side Panel (Form Card) */
.right-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    width: 100%; /* Ensures the right panel expands natively on small viewports */
}

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

.login-card h2 {
    font-size: 28px;
    color: #1B1F4B; /* Updated: Deep Corporate Blue */
    margin-bottom: 5px;
    font-weight: 700;
}

.login-card p {
    font-size: 14px;
    color: #777777;
    margin-bottom: 25px;
}
/* 🟢 Logo Resizing and Positioning Rules */
.login-logo {
    display: block;
    max-width: 160px;       /* Keeps the logo well proportioned */
    height: auto;           /* Maintains clean aspect ratio scaling */
    margin: 0 auto 12px auto; /* Centers horizontally and adds spacing above the text */
    object-fit: contain;
}
/* Flash Messages Alert Box */
.error-messages {
    background-color: #ffeef0;
    border-left: 4px solid #ff4d4d;
    color: #d93838;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: left;
    font-size: 13px;
}

/* Input Fields Layout */
.input-group {
    display: flex;
    align-items: center;
    background-color: #f1f3f5;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 12px 15px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    background-color: #ffffff;
    border-color: #1CB84D; /* Updated: Green Focus border to match sidebar items */
    box-shadow: 0 0 0 3px rgba(28, 184, 77, 0.15);
}

.input-group:focus-within .icon {
    color: #1CB84D; /* Updated: Green icon highlight on active target */
}

.input-group .icon {
    font-size: 16px;
    color: #adb5bd;
    margin-right: 12px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.input-group input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
    color: #495057;
    outline: none;
    -webkit-appearance: none; /* Fixes unexpected input styling inconsistencies on iOS Safari */
}

/* 2FA Radio Box Selection Custom Styles */
.verification-choice {
    text-align: left;
    margin: 20px 0;
    padding: 12px 14px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.verification-choice .choice-title {
    font-size: 12px;
    font-weight: 700;
    color: #1B1F4B; /* Updated: Deep Corporate Blue Headers */
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.verification-choice label {
    display: inline-flex;
    align-items: center;
    font-size: 13.5px;
    color: #495057;
    font-weight: 600;
    margin-right: 20px;
    cursor: pointer;
    padding: 6px 0; /* Makes click targets easier to hit on mobile screens */
}

.verification-choice input[type="radio"] {
    margin-right: 6px;
    accent-color: #1CB84D; /* Updated: Emerald Green radio select dot */
    width: 16px; /* Slightly larger targets for touchscreens */
    height: 16px;
}

/* Action Button Control */
button[type="submit"] {
    width: 100%;
    background-color: #1CB84D; /* Updated: Vibrant Emerald Green */
    color: #ffffff;
    border: none;
    padding: 13px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

button[type="submit"]:hover {
    background-color: #15933d; /* Updated: Hover state matching sidebar styling scale */
    box-shadow: 0 4px 12px rgba(28, 184, 77, 0.2);
}

/* Auxiliary Links */
.forgot {
    display: inline-block;
    margin-top: 20px;
    font-size: 13px;
    color: #1B1F4B; /* Updated: Default state utilizes Corporate Blue */
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.forgot:hover {
    color: #1CB84D; /* Updated: Shifts cleanly to active Emerald Green on mouse hover */
    text-decoration: underline;
}

/* ==========================================================================
   Responsive Media Query Layout Breakpoint
   ========================================================================== */
@media (max-width: 768px) {
    /* Hide the illustration panel so user doesn't have to scroll past an image */
    .left-panel {
        display: none;
    }

    /* Collapse container down to an independent card layout */
    .container {
        flex-direction: column;
        box-shadow: none; /* Optional: Cleaner flat aesthetic on mobile views */
        background: transparent;
        min-height: auto;
    }

    /* Adjust form card padding so it maximizes phone real estate */
    .right-panel {
        padding: 24px 12px;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    }
    
    /* Make OTP selections display stacked cleanly instead of squishing text */
    .verification-choice label {
        display: flex;
        margin-right: 0;
        margin-bottom: 8px;
    }
}