﻿:root {
    --login-brand: #003F84;
    --login-brand-hover: #002A5C;
    --login-brand-dark: #003F84;
    --login-muted: #727782;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow: hidden;
}

body.login-page {
    background: #ffffff !important;
    font-family: 'Inter', 'Source Sans Pro', Arial, sans-serif;
}

.login-page-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    background: #ffffff;
}

.login-banner {
    position: relative;
    display: none;
    width: 50%;
    overflow: hidden;
    background: var(--login-brand-dark);
}

.login-vector {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    pointer-events: none;
}

.login-banner-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-center {
    width: 58%;
    max-width: 380px;
    margin-bottom: 20%;
}

.logo-bottom {
    position: absolute;
    right: 40px;
    bottom: 42px;
    width: 40%;
    max-width: 250px;
    height: auto;
}

.login-form-section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.login-form-wrapper {
    width: 90%;
    max-width: 380px;
}

.login-form-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.login-form-logo img {
    display: block;
    width: 142px;
    max-width: 70%;
    height: auto;
}

.login-form-wrapper .subtitle {
    margin: 0 0 32px;
    color: var(--login-muted);
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

.login-field {
    margin-bottom: 18px;
}

.login-form-wrapper .form-label {
    display: block;
    margin-bottom: 5px;
    color: var(--login-muted);
    font-family: 'Inter', 'Source Sans Pro', Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.login-form-wrapper .input-group {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #ced4da;
    border-radius: 12px;
    background: #ffffff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.login-form-wrapper .input-group:focus-within {
    border-color: var(--login-brand-dark);
    box-shadow: 0 0 0 3px rgba(0, 63, 132, 0.14);
}

.login-form-wrapper .input-group-addon {
    width: 46px;
    min-width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--login-muted);
    font-size: 16px;
}

.login-form-wrapper .input-group:focus-within .input-group-addon {
    color: var(--login-brand-dark);
}

.login-form-wrapper .input-group-action {
    cursor: pointer;
    border-left: none;
}

button.input-group-action {
    padding: 0;
}

.login-form-wrapper .form-control {
    height: 46px;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    color: #495057;
    font-family: 'Inter', 'Source Sans Pro', Arial, sans-serif;
    font-size: 15px;
}

.login-form-wrapper .form-control:focus {
    box-shadow: none;
}

.login-form-wrapper .form-control::placeholder {
    color: #adb5bd;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0 28px;
}

.remember-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--login-muted);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.remember-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.remember-switch__slider {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.remember-switch__slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
    transition: transform 0.2s ease;
}

.remember-switch input:checked + .remember-switch__slider {
    background: var(--login-brand);
}

.remember-switch input:checked + .remember-switch__slider::before {
    transform: translateX(20px);
}

.remember-switch input:focus + .remember-switch__slider {
    box-shadow: 0 0 0 3px rgba(0, 63, 132, 0.18);
}

.remember-switch__text {
    line-height: 24px;
}

.buttonContainer {
    width: 100%;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 12px;
    background: var(--login-brand);
    color: #ffffff;
    font-family: 'Inter', 'Source Sans Pro', Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    box-shadow: none;
    transition: transform 0.16s ease, background-color 0.3s ease, color 0.3s ease;
}

.buttonContainer:hover,
.buttonContainer:focus {
    transform: scale(1.04);
    background: var(--login-brand-hover);
    color: #ffffff;
    outline: none;
}

.buttonContainer:active {
    transform: scale(1);
    background: var(--login-brand-hover);
}

.buttonContainer:disabled,
.buttonContainer.is-loading {
    background: var(--login-brand) !important;
    color: #ffffff !important;
    opacity: 1 !important;
    cursor: wait;
    transform: none;
}

.login-forgot-link {
    display: block;
    margin-top: 18px;
    text-align: center;
    color: var(--login-brand);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-forgot-link:hover,
.login-forgot-link:focus {
    color: var(--login-brand-hover);
    text-decoration: none;
}

.login-form-wrapper input[type="password"]::-ms-reveal,
.login-form-wrapper input[type="password"]::-ms-clear {
    display: none;
    width: 0;
    height: 0;
}

.login-form-wrapper input[type="password"]::-webkit-credentials-auto-fill-button,
.login-form-wrapper input[type="password"]::-webkit-textfield-decoration-container {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none;
}

@media (min-width: 900px) {
    .login-banner {
        display: block;
    }

    .login-form-section {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .login-form-section {
        padding: 24px;
    }

    .login-form-wrapper {
        width: 100%;
    }

    .login-form-logo img {
        width: 128px;
    }
}
