:root {
    --tw-navy: #071b3a;
    --tw-navy-2: #082653;
    --tw-blue: #0d6efd;
    --tw-blue-2: #2f7df6;
    --tw-text: #101b35;
    --tw-muted: #7b879d;
    --tw-border: #d9e1ef;
    --tw-bg: #f5f8fc;
}

body {
    min-height: 100vh;
    background: var(--tw-bg);
    color: var(--tw-text);
}

.login-page {
    min-height: 100vh;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-shell {
    width: 100%;
    max-width: 1180px;
    min-height: 680px;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(7, 27, 58, .12);
}

.login-brand {
    position: relative;
    background: linear-gradient(145deg, var(--tw-navy), var(--tw-navy-2));
    padding: 72px 64px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.login-brand:before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    left: -140px;
    bottom: -120px;
}

.login-brand:after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 50%;
    right: -90px;
    top: -90px;
}

.brand-content {
    position: relative;
    z-index: 2;
}

.brand-logo {
    display: flex;
    align-items: center;
    margin-bottom: 42px;
}

.brand-logo img {
    max-height: 70px;
    width: auto;
}

.brand-title {
    font-size: 30px;
    line-height: 1.35;
    font-weight: 500;
    max-width: 390px;
    margin-bottom: 24px;
}

.brand-line {
    width: 54px;
    height: 3px;
    background: var(--tw-blue-2);
    border-radius: 999px;
}

.login-content {
    position: relative;
    padding: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle {
    position: absolute;
    top: 34px;
    right: 38px;
    height: 38px;
    padding: 4px;
    border: 1px solid var(--tw-border);
    border-radius: 999px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 2px;
}

.theme-toggle button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6e7d96;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle button.active {
    background: #eef3fb;
    color: var(--tw-navy);
}

.login-box {
    width: 100%;
    max-width: 460px;
}

.login-title {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.5px;
    margin-bottom: 6px;
    color: var(--tw-text);
}

.login-subtitle {
    color: var(--tw-muted);
    font-size: 17px;
    margin-bottom: 38px;
}

.login-box .form-label {
    color: var(--tw-text);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.input-wrap {
    position: relative;
}

.input-wrap .form-control {
    height: 54px;
    border-radius: 9px;
    border-color: var(--tw-border);
    padding-left: 48px;
    padding-right: 48px;
    color: var(--tw-text);
    box-shadow: none;
}

.input-wrap .form-control::placeholder {
    color: #8d99af;
}

.input-wrap .form-control:focus {
    border-color: var(--tw-blue);
    box-shadow: 0 0 0 .18rem rgba(13, 110, 253, .12);
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #8190a8;
    pointer-events: none;
}

.btn-show-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #6e7d96;
    width: 32px;
    height: 32px;
}

.btn-show-password:hover {
    color: var(--tw-blue);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 14px 0 30px;
    font-size: 14px;
}

.login-options a {
    text-decoration: none;
    color: var(--tw-blue);
    font-weight: 500;
}

.login-options a:hover {
    text-decoration: underline;
}

.login-options .form-check-input {
    box-shadow: none;
}

.login-options .form-check-input:checked {
    background-color: var(--tw-blue);
    border-color: var(--tw-blue);
}

.btn-login {
    height: 54px;
    border-radius: 9px;
    border: 0;
    background: linear-gradient(90deg, var(--tw-blue), #075cf2);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    box-shadow: 0 12px 24px rgba(13, 110, 253, .22);
}

.btn-login:hover {
    color: #fff;
    filter: brightness(.97);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #8491a8;
    margin: 32px 0;
    font-size: 14px;
}

.login-divider:before,
.login-divider:after {
    content: "";
    height: 1px;
    background: var(--tw-border);
    flex: 1;
}

.btn-google {
    height: 54px;
    border-radius: 9px;
    border: 1px solid var(--tw-border);
    background: #fff;
    color: var(--tw-text);
    font-weight: 600;
    width: 100%;
}

.btn-google:hover {
    border-color: #c7d1e3;
    background: #f8fafc;
}

.btn-google i {
    color: #db4437;
    margin-right: 8px;
}

.login-register {
    text-align: center;
    color: var(--tw-muted);
    margin-top: 28px;
    font-size: 14px;
}

.login-register a {
    color: var(--tw-blue);
    text-decoration: none;
    font-weight: 600;
}

.login-register a:hover {
    text-decoration: underline;
}

@media (max-width: 991px) {
    .login-page {
        padding: 0;
    }

    .login-shell {
        min-height: 100vh;
        grid-template-columns: 1fr;
        border-radius: 0;
        box-shadow: none;
    }

    .login-brand {
        display: none;
    }

    .login-content {
        padding: 72px 24px 40px;
    }

    .theme-toggle {
        top: 22px;
        right: 22px;
    }
}

@media (max-width: 575px) {
    .login-title {
        font-size: 26px;
    }

    .login-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .input-wrap .form-control,
    .btn-login,
    .btn-google {
        height: 50px;
    }
}