html, body {
    min-height: 100%;
    margin: 0;
}

/* Container */
.login-container {
    width: 100vw;
    min-height: 100vh;
    background-color: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

/* Main Paper */
.login-paper {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 0;
    display: flex;
    overflow: hidden;
}

/* Left Section */
.login-left {
    background: linear-gradient(135deg, #0F3654 0%, #19527C 100%);
    margin: 12px;
    padding: 48px;
    border-radius: 24px;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.login-left-content {
    z-index: 2;
}

.login-title {
    color: white;
    font-weight: 850;
    line-height: 1.1;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 450px;
}

/* Illustration */
.login-illustration {
    margin-top: auto;
    margin-right: -10%;
    margin-bottom: -5%;
}

    .login-illustration img {
        width: 85%;
        min-width: 600px;
        border-radius: 20px;
    }

/* Right Section */
.login-right {
    height: 100vh;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-logo {
    display: flex;
    align-items: center;
}

/* Text */
.login-welcome {
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 6px;
    font-size: 1.75rem;
}

.login-hint {
    color: #475569;
    font-size: 16.5px;
    font-weight: 500;
    margin-bottom: 24px;
}

/* Form */
.login-right form {
    width: 100%;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.login-form > div {
    width: 100%;
}

.login-label {
    display: block;
    width: 100%;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 6px;
    font-size: 14px;
}

/* Full Width for Input Controls */
.login-form .mud-input-control.login-input,
.login-form .login-input,
.login-input {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.login-form .mud-input-control-input-container {
    width: 100% !important;
    max-width: 100% !important;
}

/* Email & Password Input Fields (White Outer Pill with Icon, Inner Light-Blue Pill for Input) */
.login-form .mud-input.mud-input-outlined {
    height: 54px;
    width: 100% !important;
    max-width: 100% !important;
    background-color: #FFFFFF !important;
    border-radius: 27px !important;
    padding-left: 18px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    transition: all 0.2s ease;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    position: relative;
}

.login-form .mud-input.mud-input-outlined .mud-input-outlined-border {
    border-color: #CBD5E1 !important;
    border-width: 1.5px !important;
    border-radius: 27px !important;
    transition: all 0.2s ease;
}

.login-form .mud-input.mud-input-outlined:hover .mud-input-outlined-border {
    border-color: #94A3B8 !important;
}

.login-form .mud-input.mud-input-outlined:focus-within .mud-input-outlined-border {
    border-color: #0E0B96 !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 3px rgba(14, 11, 150, 0.15) !important;
}

.login-form .mud-input-adornment-start {
    margin-right: 12px !important;
    margin-left: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.login-form .mud-input-adornment-start .mud-icon-root {
    color: #64748B !important;
    font-size: 20px;
    transition: color 0.2s ease;
}

.login-form .mud-input:focus-within .mud-input-adornment-start .mud-icon-root {
    color: #0E0B96 !important;
}

/* Hide MudBlazor's hidden helper div so it NEVER renders as a second blue circle */
.login-form div.mud-input-slot {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

/* Inner Light-Blue Pill for Input Text & Placeholder */
.login-form input.mud-input-slot {
    color: #0F172A !important;
    font-weight: 500;
    font-size: 15px;
    background-color: #E8F0FE !important;
    height: 42px !important;
    border-radius: 21px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    display: block !important;
    line-height: normal !important;
    transition: background-color 0.2s ease;
}

.login-form input.mud-input-slot:hover {
    background-color: #E2EDFE !important;
}

.login-form input.mud-input-slot:focus {
    background-color: #E2ECFE !important;
}

.login-form input::placeholder {
    color: #64748B !important;
    opacity: 1 !important;
    font-size: 14px;
}

/* Autofill styling fix: matches the inner rounded light-blue pill */
.login-form input:-webkit-autofill,
.login-form input:-webkit-autofill:hover, 
.login-form input:-webkit-autofill:focus, 
.login-form input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #E8F0FE inset !important;
    -webkit-text-fill-color: #0F172A !important;
    caret-color: #0F172A !important;
    border-radius: 21px !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Options (Remember Me & Forgot Password - Aligned with Deep Blue) */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: -2px;
    margin-bottom: 2px;
}

.login-checkbox {
    margin: 0 !important;
    display: inline-flex;
    align-items: center;
}

.login-checkbox .mud-button-root.mud-icon-button {
    padding: 4px !important;
    margin-left: -4px !important;
}

.login-checkbox .mud-checkbox-text {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    user-select: none;
}

.login-checkbox .mud-icon-root {
    color: #0E0B96 !important;
}

.login-forgot {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0E0B96 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    transition: color 0.2s ease;
}

.login-forgot:hover {
    color: #0A0874 !important;
    text-decoration: underline !important;
}

/* Button (Unified with Deep Blue #0E0B96) */
.login-button {
    width: 100% !important;
    height: 54px;
    border-radius: 27px;
    background-color: #19527C !important;
    color: white !important;
    font-size: 16px;
    font-weight: 600;
    text-transform: none;
    box-shadow: 0 4px 14px rgba(14, 11, 150, 0.35);
    transition: all 0.25s ease;
}

    .login-button:hover {
        background-color: #123D5C !important;
        box-shadow: 0 6px 20px rgba(14, 11, 150, 0.45);
        transform: translateY(-1px);
    }

@media (max-width: 768px) {
    .login-right {
        padding: 24px;
        height: auto;
        min-height: 100vh;
    }
}
