:root {
    --tw-primary: #153B5B;
    --tw-primary-dark: #102A3D;
    --tw-accent: #12A594;
    --tw-accent-dark: #0E8F80;
    --tw-primary-rgb: 21, 59, 91;
    --tw-accent-rgb: 18, 165, 148;
    --tw-bg: #F5F7F9;
    --tw-white: #FFFFFF;
    --tw-text: #25333D;
    --tw-muted: #6E7C86;
    --tw-border: #DDE3E8;
    --tw-radius-sm: 6px;
    --tw-radius: 10px;
    --tw-radius-lg: 16px;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--tw-bg);
    color: var(--tw-text);
    font-family: "Manrope", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.login-page {
    min-height: 100vh;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 42%) 1fr;
}

.login-brand {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 42px;
    background: linear-gradient(145deg, var(--tw-primary-dark), var(--tw-primary));
    color: var(--tw-white);
}

.login-brand::before,
.login-brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.login-brand::before {
    width: 420px;
    height: 420px;
    right: -190px;
    bottom: -180px;
    background: rgba(var(--tw-accent-rgb), .17);
}

.login-brand::after {
    width: 240px;
    height: 240px;
    left: -110px;
    top: -90px;
    border: 1px solid rgba(255, 255, 255, .08);
}

.login-brand-top,
.brand-content,
.login-brand-footer {
    position: relative;
    z-index: 1;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
}

.brand-logo img {
    width: auto;
    max-width: 190px;
    max-height: 58px;
}

.brand-content {
    max-width: 500px;
}

.brand-kicker {
    display: inline-block;
    margin-bottom: 13px;
    color: var(--tw-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.brand-title {
    max-width: 470px;
    margin-bottom: 14px;
    color: var(--tw-white);
    font-size: 31px;
    font-weight: 700;
    line-height: 1.2;
}

.brand-description {
    max-width: 470px;
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    line-height: 1.55;
}

.login-brand-footer {
    color: rgba(255, 255, 255, .5);
    font-size: 11px;
}

.login-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--tw-bg);
}

.login-box {
    width: 100%;
    max-width: 430px;
}

.login-title {
    margin: 0 0 7px;
    color: var(--tw-primary-dark);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.login-subtitle {
    margin: 0 0 28px;
    color: var(--tw-muted);
    font-size: 14px;
}

.login-box .form-label {
    display: block;
    margin-bottom: 6px;
    color: var(--tw-text);
    font-size: 13px;
    font-weight: 600;
}

.input-wrap {
    position: relative;
}

.input-wrap .form-control {
    min-height: 44px;
    padding: 10px 45px 10px 42px;
    border: 1px solid var(--tw-border);
    border-radius: var(--tw-radius);
    background: var(--tw-white);
    color: var(--tw-text);
    font-family: inherit;
    font-size: 14px;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.input-wrap .form-control::placeholder {
    color: #A4AFB7;
}

.input-wrap .form-control:focus {
    border-color: var(--tw-accent);
    box-shadow: 0 0 0 3px rgba(var(--tw-accent-rgb), .12);
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 2;
    color: var(--tw-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.btn-show-password {
    position: absolute;
    top: 50%;
    right: 7px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: var(--tw-radius-sm);
    background: transparent;
    color: var(--tw-muted);
    cursor: pointer;
    transform: translateY(-50%);
    transition: color .2s ease, background .2s ease;
}

.btn-show-password:hover,
.btn-show-password.active {
    background: rgba(var(--tw-primary-rgb), .06);
    color: var(--tw-primary);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 14px 0 26px;
    font-size: 12px;
}

.login-options .form-check {
    min-width: 0;
    margin: 0;
}

.login-options .form-check-label {
    color: var(--tw-text);
}

.login-options .form-check-input {
    margin-top: .18em;
    border-color: var(--tw-border);
    box-shadow: none;
}

.login-options .form-check-input:checked {
    background-color: var(--tw-accent);
    border-color: var(--tw-accent);
}

.login-options a,
.login-box a,
.login-box .btn-link {
    color: var(--tw-primary);
    font-weight: 600;
    text-decoration: none;
}

.login-options a:hover,
.login-box a:hover,
.login-box .btn-link:hover {
    color: var(--tw-accent);
}

.btn-login {
    width: 100%;
    min-height: 44px;
    padding: 10px 17px;
    border: 1px solid var(--tw-accent);
    border-radius: var(--tw-radius);
    background: var(--tw-accent);
    color: var(--tw-white);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.btn-login:hover {
    background: var(--tw-accent-dark);
    border-color: var(--tw-accent-dark);
    color: var(--tw-white);
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0);
}

.login-box .alert {
    border-radius: var(--tw-radius);
    font-size: 12px;
}

.login-box .alert-success {
    border-color: rgba(34, 197, 94, .25);
    background: rgba(34, 197, 94, .08);
    color: #147A38;
}

.login-box .alert-warning {
    border-color: rgba(245, 158, 11, .25);
    background: rgba(245, 158, 11, .08);
    color: #9A6100;
}

.login-box .alert-danger {
    border-color: rgba(239, 68, 68, .22);
    background: rgba(239, 68, 68, .07);
    color: #B92D2D;
}

@media (max-width: 850px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-brand {
        min-height: 300px;
        padding: 32px;
    }

    .brand-title {
        font-size: 26px;
    }

    .brand-description {
        display: none;
    }

    .login-content {
        padding: 36px 20px;
    }
}

@media (max-width: 650px) {
    .login-brand {
        min-height: 250px;
        padding: 26px 22px;
    }

    .brand-logo img {
        max-width: 160px;
        max-height: 50px;
    }

    .brand-title {
        font-size: 23px;
    }

    .login-brand-footer {
        display: none;
    }

    .login-content {
        padding: 30px 18px;
    }

    .login-title {
        font-size: 24px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}
