* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", "Segoe UI", sans-serif;
}

body {
    background: linear-gradient(135deg, #0f172a, #020617);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CARD */
.login-wrapper {
    width: 920px;
    height: 506px;
    background: #ffffff;
    display: flex;
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.45);
    animation: fadeIn 0.8s ease;
}

/* LEFT */
.login-left {
    width: 50%;
    padding: 25px;
}

.logo {
    width: 125px;
    margin-bottom: 18px;
}

.login-left h2 {
    font-size: 28px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
}

.login-left p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 35px;
}

p#signupError , p#loginError{
    margin-bottom:3px;
    font-size: 12px;
}

.switch-text{
    margin: 0px !important;
}

/* INPUTS */
.input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 15px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #2563eb;
}

.form-control {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    height: 46px;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

/* BUTTON */
.login-left .btn {
    height: 46px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
}

.login-left .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.4);
}

/* ERROR */
#errorMsg {
    font-size: 14px;
}

/* RIGHT */
.login-right {
    width: 50%;
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.85),
            rgba(2, 6, 23, 0.9));
    position: relative;
}

.login-right img {
    width: 100%;
    height: 75%;
    object-fit: cover;
    opacity: 0.9;
}

/* ANIMATION */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .login-wrapper {
        width: 95%;
        height: auto;
        flex-direction: column;
    }

    .login-left,
    .login-right {
        width: 100%;
    }

    .login-right {
        height: 220px;
    }
}



/*  Sigup css */
.hidden {
    display: none;
}

/* RIGHT BUTTON */
.register-btn {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 10px 22px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.register-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
}

/* SWITCH TEXT */
.switch-text {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
}

.switch-text span {
    color: #2563eb;
    cursor: pointer;
    font-weight: 600;
}

/* ANIMATION */
#loginBox,
#signupBox {
    animation: slideFade 0.45s ease;
}


input#signupEmail , input#signupUser , input#signupPassword , input#confirmPassword{
    height: 40px;
}
div#signupBox p {
    margin: 0px;
}


@keyframes slideFade {
    from {
        opacity: 0;
        transform: translateX(25px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}