/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* BODY */
html,
body {
    width: 100%;
    height: 100%;
}
body {
    font-family: "Poppins", sans-serif;
    background: #f4f5f7;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
/* MAIN CONTAINER */
.login-container {
    width: 85vw;
    height: 82vh;
    max-width: 1200px;
    max-height: 700px;
    min-width: 800px;
    min-height: 520px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    border: 1px solid #e4e4e7;
    border-radius: 20px;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.08);
}
/* REGISTRATION SECTION */
.register-section {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}
.register-content {
    width: 72%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* REGISTRATION LOGO */
.register-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    transform: translateY(-8px);
}
.register-logo img {
    width: 210px;
    height: auto;
    object-fit: contain;
    display: block;
}
/* REGISTRATION TITLE */
.register-content h2 {
    font-size: 26px;
    font-weight: 600;
    color: #222;
    margin-bottom: 22px;
}
/* REGISTRATION FORM */
#registerForm {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* LOGIN SECTION */
.login-section {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    transform: translateY(-15px);
    z-index: 1;
}
/* LOGIN LOGO */
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    transform: translateY(-8px);
}
.logo img {
    width: 210px;
    height: auto;
    object-fit: contain;
    display: block;
}
/* LOGIN TITLE */
.login-section h2 {
    font-size: 26px;
    font-weight: 600;
    color: #222;
    margin-bottom: 22px;
}
/*  INPUT BOX */
.input-box {
    width: 100%;
    height: 52px;
    background: #e9e9e9;
    border-radius: 7px;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 16px;
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease;
}
.input-box:focus-within {
    background: #eeeeee;
    box-shadow:
        0 0 0 2px rgba(220, 0, 0, 0.15);
}
/* INPUT */
.input-box input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #333;
}
.input-box input::placeholder {
    color: #999;
}
/* NORMAL INPUT ICONS */
.input-box > img:not(.toggle-password) {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}
/* PASSWORD ICONS */
.toggle-password {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px;
    min-height: 24px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    cursor: pointer !important;
    pointer-events: auto !important;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    opacity: 1;
    transition:
        transform 0.15s ease,
        opacity 0.15s ease;
}
.toggle-password:hover {
    transform: scale(1.12);
    opacity: 0.75;
}
.toggle-password:active {
    transform: scale(0.92);
}
/* LOGIN FORM */
#loginForm {
    width: 72%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* FORGOT PASSWORD */
.forgot-password {
    width: 100%;
    text-align: right;
    font-size: 9px;
    font-weight: 400;
    color: #555;
    text-decoration: none;
    margin-top: -2px;
    margin-bottom: 14px;
    transition: 0.2s ease;
}
.forgot-password:hover {
    color: #c00000;
    text-decoration: underline;
}
/* BUTTONS */
.login-btn,
.register-submit-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 6px;
    background:
        linear-gradient(
            to right,
            #7f1d1d,
            #e00000
        );
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition:
        0.3s ease;
}
.login-btn:hover,
.register-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 5px 15px rgba(200, 0, 0, 0.3);
}
.login-btn:active,
.register-submit-btn:active {
    transform: translateY(0);
}
/* MESSAGES */
#loginMessage,
#registerMessage {
    margin-top: 12px;
    font-size: 10px;
    text-align: center;
    min-height: 15px;
}
/*  RED PANEL */
.red-panel {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background:
        linear-gradient(
            135deg,
            #9d2424,
            #e00000
        );
    border-radius:
        0 140px 140px 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    will-change:
        left,
        width,
        border-radius;
}
/* RED PANEL CONTENT */
.red-content {
    width: 100%;
    text-align: center;
    color: #ffffff;
    opacity: 1;
    transform: scale(1);
    transition:
        opacity 0.12s ease,
        transform 0.12s ease;
}
.red-content.hide-text {
    opacity: 0;
    transform: scale(0.97);
    pointer-events: none;
}
/* RED PANEL TEXT */
.red-content h1 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 6px;
}
.red-content p {
    font-size: 11px;
    font-weight: 400;
    margin-bottom: 16px;
}
/* RED PANEL BUTTON */
.register-btn {
    width: 100px;
    height: 34px;
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 5px;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}
.register-btn:hover {
    background: #ffffff;
    color: #c00000;
    transform: translateY(-1px);
}
/* MOVE TO REGISTER */
.move-to-register {
    animation:
        moveToRegister
        0.95s
        cubic-bezier(.65, 0, .35, 1)
        forwards;
}
@keyframes moveToRegister {
    0% {
        left: 0;
        width: 50%;
        border-radius:
            0 140px 140px 0;
    }
    42% {
        left: 0;
        width: 100%;
        border-radius: 0;
    }
    58% {
        left: 0;
        width: 100%;
        border-radius: 0;
    }
    100% {
        left: 50%;
        width: 50%;
        border-radius:
            140px 0 0 140px;
    }
}
/*  MOVE TO LOGIN  */
.move-to-login {
    animation:
        moveToLogin
        0.95s
        cubic-bezier(.65, 0, .35, 1)
        forwards;
}
@keyframes moveToLogin {
    0% {
        left: 50%;
        width: 50%;
        border-radius:
            140px 0 0 140px;
    }
    42% {
        left: 0;
        width: 100%;
        border-radius: 0;
    }
    58% {
        left: 0;
        width: 100%;
        border-radius: 0;
    }
    100% {
        left: 0;
        width: 50%;
        border-radius:
            0 140px 140px 0;
    }
}
/* RESPONSIVE */
@media (max-width: 950px) {
    .login-container {
        width: 90vw;
        height: 85vh;
        min-width: 0;
        min-height: 0;
    }
    .logo img,
    .register-logo img {
        width: 190px;
    }
    .login-section h2,
    .register-content h2 {
        font-size: 24px;
    }
    .red-content h1 {
        font-size: 30px;
    }
}
@media (max-width: 700px) {
    body {
        overflow: auto;
    }
    .login-container {
        width: 94vw;
        height: 94vh;
        min-width: 0;
        min-height: 0;
        border-radius: 16px;
    }
    .logo img,
    .register-logo img {
        width: 170px;
    }
    .red-content h1 {
        font-size: 24px;
    }
    .red-content p {
        font-size: 10px;
    }
    .input-box img {
        width: 20px;
        height: 20px;
    }
    .toggle-password {
        width: 23px !important;
        height: 23px !important;
    }
}