:root {
    --primary-color: #000;
    --secondary-color: #fff;
    --text-color: #333;
    --hover-color: #fff;;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to bottom, #ffffff, #000000);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.login-register__container {
    width: 100%;
    max-width: 1000px;
    background-color: var(--secondary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    /* border-radius: 10px; */
    overflow: hidden;
    transition: all var(--transition-speed) ease;
}
.section__title {
    padding: 11px 8px;
    font-size: 19px;
    /* background: #000; */
    /* color: #fff; */
    margin: 1em 0;
}
.mid-name {
    /* color: #ff0000; */
}
/* Form Styles */
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px;
}

.form__group {
    position: relative;
    margin-bottom: 15px;
}

.form__input {
    width: 100%;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    padding: 10px 0;
    font-size: 16px;
    background: transparent;
    transition: border-color var(--transition-speed) ease;
}

.form__input:focus {
    border-bottom: 2px solid #333;
    outline: none;
    width: 100%;
    border: none;
    border-bottom: 2px solid #ff005a;
    padding: 10px 0;
    font-size: 16px;
    background: transparent;
    transition: border-color var(--transition-speed) ease;
}
#showRegister:hover {
    color: #0c8705;
}
#showLogin:hover {
    color: #0c8705;
}
.form__label {
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 12px;
    color: var(--hover-color);
    transition: all var(--transition-speed) ease;
}

.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label {
    top: -20px;
    font-size: 12px;
    color: var(--primary-color);
}

.password-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--primary-color);
}

.form__extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.form__btn .btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 1px solid #000;
    cursor: pointer;
    font-weight: 700;
    transition: background-color var(--transition-speed) ease;
}

.form__btn .btn:hover {
    background-color: var(--hover-color);
    color: #000;
    border: 1px solid #000;
}

/* Login/Register Toggle */
.login, .register {
    display: none;
}

.login.active, .register.active {
    display: block;
}

.switch-form {
    text-align: center;
    margin-top: 20px;
}
.name-shop {
    font-weight: bold;
}
.wlcome {
    font-weight: unset;
}
.switch-form a {
    color: #ff0000;
    text-decoration: none;
    margin-left: 5px;
    transition: color var(--transition-speed) ease;
}

.switch-form a:hover {
    color: var(--hover-color);
}

.total-site {
    display: flex;
}

.left-site, .right-site {
    flex: 1;
    padding: 20px;
}

.right-site {
    background-color: #f4f4f4;
    display: flex;
    justify-content: left;
}

.right-site ul {
    list-style-type: none;
    padding: 0;
}

.right-site .item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.right-site .item__icon {
    width: 30px;
    height: 30px;
    margin-right: 15px;
}

@media (max-width: 768px) {
    .total-site {
        flex-direction: column;
    }
    
    .right-site {
        display: none;
    }
    .login-register {
        padding: 0 !important;
    }
    .form__extras {
        /* display: block; */
    }
    .form__checkbox {
        /* font-weight: 700; */
    }
    .form {
        display: flex    ;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    .section__title {
        margin: 0;
    }
    .left-site, .right-site {
        height: 50vh;
    }    
    
}
a.forgot-password {
    text-decoration: none;
    color: #000;
}
a.forgot-password:hover {
    color: #ff0000;
}
.form__checkbox {
    display: flex;
    margin: 2px 0px;
    color: #000;
    align-items: center;
}
/* Error Message */
.error-message {
    color: red;
    text-align: center;
    margin-top: 10px;
}
.rank-select-container {
    position: relative;
}

.rank-input {
    width: 100%;
}

.rank-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    background-color: white;
    z-index: 1000;
}

.rank-dropdown.show {
    display: block;
}

.rank-dropdown-item {
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.rank-dropdown-item:hover {
    background-color: #f0f0f0;
}