html,
body {
    min-height: 100%;
    background: #2b345b;
}

body {
    overflow-x: hidden;
}

.login-page {
    min-height: 100vh;
    background: #2b345b;
    color: #151827;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-shell {
    width: min(1180px, 100%);
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(420px, 0.95fr) minmax(420px, 1fr);
    background: #f5f6fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(8, 13, 35, 0.28);
}

.login-visual {
    position: relative;
    background-image: linear-gradient(180deg, rgba(43, 52, 91, 0.12), rgba(43, 52, 91, 0.44)), url('/Data/images/mainbg.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.login-visual__content {
    position: absolute;
    left: 40px;
    right: 40px;
    bottom: 38px;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.36);
}

.login-visual__eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.login-visual__content strong {
    display: block;
    max-width: 420px;
    font-size: 1.6rem;
    line-height: 1.25;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: #eef1f6;
}

.login-card {
    width: min(520px, 100%);
    background: #ffffff;
    border: 1px solid #dde2ec;
    border-radius: 8px;
    padding: 44px;
    box-shadow: 0 26px 58px rgba(22, 29, 53, 0.2), 0 8px 18px rgba(22, 29, 53, 0.1);
}

.login-brand {
    min-height: 72px;
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.login-brand img {
    max-width: 210px;
    max-height: 72px;
    object-fit: contain;
}

.login-mobile-image {
    display: none;
    margin: -14px -14px 24px;
    overflow: hidden;
    border-radius: 6px;
}

.login-mobile-image img {
    display: block;
    width: 100%;
    height: auto;
}

.login-copy {
    margin-bottom: 30px;
}

.login-copy h1 {
    margin: 0 0 12px;
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 800;
    color: #151827;
}

.login-copy p {
    margin: 0;
    color: #4b5267;
    font-size: 0.98rem;
    line-height: 1.55;
}

.login-fields {
    display: grid;
    gap: 16px;
}

.login-field {
    position: relative;
}

.login-field__icon {
    position: absolute;
    left: 14px;
    top: 13px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.login-field__icon img {
    max-width: 20px;
    max-height: 20px;
}

.login-field .form-control {
    min-height: 52px;
    padding: 0.75rem 1rem 0.75rem 52px;
    border: 1px solid #d5dbe8;
    border-radius: 6px;
    background: #f3f5f9;
    color: #171b2e;
    font-size: 0.98rem;
    box-shadow: none;
}

.login-field .form-control:focus {
    border-color: #2b345b;
    background: #fff;
    box-shadow: 0 0 0 0.18rem rgba(43, 52, 91, 0.16);
}

.login-field .invalid-feedback {
    margin-top: 6px;
    font-size: 0.82rem;
}

.login-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 18px 0 0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.login-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 26px;
}

.login-submit {
    min-width: 132px;
    min-height: 44px;
    border-radius: 6px;
    background: #2b345b;
    border-color: #2b345b;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0;
}

.login-submit:hover,
.login-submit:focus {
    background: #222a4d;
    border-color: #222a4d;
    color: #fff;
}

.login-submit:disabled {
    opacity: 0.72;
    cursor: wait;
}

.login-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e8f0;
    color: #6d7486;
    font-size: 0.74rem;
    line-height: 1.4;
}

@media (max-width: 991.98px) {
    .login-page {
        align-items: flex-start;
        padding: 22px;
    }

    .login-shell {
        display: block;
        min-height: auto;
        background: transparent;
        box-shadow: none;
    }

    .login-visual {
        display: none;
    }

    .login-panel {
        padding: 0;
        background: transparent;
    }

    .login-card {
        padding: 30px;
    }

    .login-brand {
        min-height: 54px;
        justify-content: center;
        margin-bottom: 18px;
    }

    .login-brand img {
        max-height: 54px;
        max-width: 180px;
    }

    .login-mobile-image {
        display: block;
    }

    .login-copy h1 {
        font-size: 1.65rem;
    }

    .login-actions {
        justify-content: stretch;
    }

    .login-submit {
        width: 100%;
    }
}
