.login-page {
    min-height: calc(100vh - 80px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 45px 20px;

    background: #f5f6fa;
}

.login-container {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: 48% 52%;

    min-height: 620px;

    background: #ffffff;

    border-radius: 24px;

    overflow: hidden;

    box-shadow:
        0 18px 45px rgba(0,0,0,.10);
}

.login-left {
    position: relative;

    min-width: 0;
    min-height: 620px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #951c31,
            #6f1022
        );
}

.login-overlay {
    position: absolute;

    inset: 0;

    z-index: 2;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: flex-start;

    padding: 55px;

    color: #ffffff;
}

.login-logo {
    width: 360px;
    max-width: 90%;

    height: auto;

    display: block;

    margin: 0 0 42px;

    object-fit: contain;

    filter: brightness(0) invert(1);
}

.login-copy {
    width: 100%;

    max-width: 430px;
}

.login-overlay h1 {
    margin: 0 0 16px;

    color: #ffffff;

    font-size: 34px;

    line-height: 1.15;

    font-weight: 750;
}

.login-overlay p {
    max-width: 410px;

    margin: 0 0 22px;

    color: rgba(255,255,255,.88);

    font-size: 14px;

    line-height: 1.7;
}

.login-products {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.login-products span {
    padding: 7px 12px;

    border: 1px solid rgba(255,255,255,.35);

    border-radius: 20px;

    background: rgba(255,255,255,.10);

    color: #ffffff;

    font-size: 11px;
}

.login-right {
    min-width: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 55px 60px;

    background: #ffffff;
}

.login-content {
    width: 100%;

    max-width: 400px;

    margin: 0 auto;
}

.login-heading {
    margin-bottom: 28px;
}

.login-heading h2 {
    margin: 0 0 8px;

    color: #8b1e2d;

    font-size: 31px;

    line-height: 1.2;

    font-weight: 750;
}

.login-heading p {
    margin: 0;

    color: #777;

    font-size: 13px;

    line-height: 1.6;
}

#loginForm {
    width: 100%;
}

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;

    margin-bottom: 7px;

    color: #222;

    font-size: 13px;

    font-weight: 650;
}

.input-box {
    position: relative;

    display: flex;

    align-items: center;

    height: 50px;

    border: 1px solid #dddddd;

    border-radius: 11px;

    background: #ffffff;

    transition: all .2s ease;
}

.input-box:focus-within {
    border-color: #8b1e2d;

    box-shadow:
        0 0 0 3px rgba(139,30,45,.07);
}

.input-box > i {
    width: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #8b1e2d;
}

.input-box input {
    flex: 1;

    height: 100%;

    min-width: 0;

    border: none;

    outline: none;

    padding: 0 12px 0 0;

    background: transparent;

    color: #222;

    font-size: 13px;
}

.input-box input::placeholder {
    color: #a0a0a0;
}

.password-box input {
    padding-right: 5px;
}

.toggle-password {
    width: 45px;

    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    background: transparent;

    color: #777;

    cursor: pointer;
}

.toggle-password:hover {
    color: #8b1e2d;
}

.login-option {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin: 3px 0 20px;

    font-size: 12px;
}

.remember {
    display: flex;

    align-items: center;

    gap: 7px;

    color: #555;

    cursor: pointer;
}

.remember input {
    width: 15px;
    height: 15px;

    accent-color: #8b1e2d;
}

.login-option > a {
    color: #8b1e2d;

    font-weight: 600;

    text-decoration: none;
}

.login-option > a:hover {
    text-decoration: underline;
}

.btn-auth {
    width: 100%;

    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    border: none;

    border-radius: 11px;

    background: #8b1e2d;

    color: #ffffff;

    font-size: 14px;

    font-weight: 650;

    cursor: pointer;

    transition: .25s;
}

.btn-auth:hover {
    background: #741724;

    transform: translateY(-1px);
}

.divider {
    display: flex;

    align-items: center;

    gap: 12px;

    margin: 23px 0;
}

.divider::before,
.divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: #e5e5e5;
}

.divider span {
    color: #999;

    font-size: 11px;
}

.btn-google {
    width: 100%;

    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    border: 1px solid #dddddd;

    border-radius: 11px;

    background: #ffffff;

    color: #222;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;
}

.btn-google:hover {
    background: #fafafa;
}

.register-text {
    margin: 22px 0 0;

    text-align: center;

    color: #777;

    font-size: 12px;
}

.register-text a {
    color: #8b1e2d;

    font-weight: 650;

    text-decoration: none;
}

.register-text a:hover {
    text-decoration: underline;
}

.toast {
    position: fixed;

    right: 25px;
    bottom: 25px;

    z-index: 9999;

    min-width: 260px;

    padding: 13px 16px;

    border-radius: 12px;

    background: #ffffff;

    color: #333;

    box-shadow:
        0 10px 30px rgba(0,0,0,.15);

    display: none;
}

.toast-content {
    display: flex;

    align-items: center;

    gap: 10px;
}

.toast-content i {
    color: #198754;

    font-size: 18px;
}

@media (max-width: 900px) {

    .login-container {
        grid-template-columns: 1fr;

        max-width: 600px;
    }

    .login-left {
        min-height: 300px;

        height: 300px;
    }

    .login-right {
        padding: 40px 35px;
    }

}

@media (max-width: 600px) {

    .login-page {
        min-height: auto;

        padding: 25px 12px 40px;
    }

    .login-container {
        border-radius: 18px;
    }

    .login-left {
        height: 240px;

        min-height: 240px;
    }

    .login-overlay {
        left: 25px;
        right: 25px;
        bottom: 25px;
    }

    .login-overlay h1 {
        font-size: 24px;
    }

    .login-overlay p {
        display: none;
    }

    .login-right {
        padding: 32px 22px;
    }

    .login-heading h2 {
        font-size: 27px;
    }

}

.user-dropdown {
    position: relative;
    display: inline-flex;
}

.user-btn {
    height: 44px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 0 18px;

    border: none;
    border-radius: 24px;

    background: #ffffff;
    color: #171717;

    font-family: inherit;
    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    white-space: nowrap;

    transition: .2s ease;

    position: relative;
    z-index: 1002;
}

.user-btn:hover {
    background: #f8f8f8;
}

.user-btn.active {
    background: #ffffff;
}

.user-btn > i:first-child {
    font-size: 18px;
}

.dropdown-arrow {
    font-size: 13px;

    margin-left: 3px;

    transition: transform .2s ease;
}

.user-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;

    top: calc(100% + 10px);

    right: 0;

    width: 260px;

    padding: 8px;

    background: #ffffff;

    border-radius: 0 0 16px 16px;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, .14);

    border: 1px solid rgba(0, 0, 0, .04);

    display: none;

    z-index: 1001;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a,
.dropdown-logout {

    width: 100%;

    min-height: 52px;

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 12px 15px;

    border: none;

    border-radius: 10px;

    background: transparent;

    color: #3d3d3d;

    font-family: inherit;

    font-size: 17px;

    text-decoration: none;

    text-align: left;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}

.dropdown-content a i,
.dropdown-logout i {

    width: 24px;

    text-align: center;

    font-size: 20px;

    color: #666;

}

.dropdown-content a:hover,
.dropdown-logout:hover {

    background: #f6f6f6;

    color: #8f1d30;
}

.dropdown-content a:hover i,
.dropdown-logout:hover i {

    color: #8f1d30;
}

.dropdown-logout {

    margin-top: 2px;
}
