/* register page css */
.signUp {
    display: flex;
    justify-content: start;
    align-items: center;
    min-height: 100vh;
    position: relative;
    background: url("/static/img/background/loginBg.jpg") no-repeat;
    background-size: cover;
    background-position: right -250px top 0px;
    padding: 0px 100px;
}

.signUp::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.314);
    z-index: 1;
}

.signUpContainer {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    margin: 5px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.signUpContainer img {
    max-width: 200px;
    border-radius: 10px;
    object-fit: cover;
}

.signUpForm {
    flex: 1;
}

/* Tablet and below */
@media (max-width: 768px) {
    .signUp {
        padding: 0px 40px;
        /* reduce side padding */
    }

    .signUpContainer {
        flex-direction: column;
        /* stack image & form */
        align-items: center;
        gap: 1rem;
        max-width: 600px;
    }

    .signUpContainer img {
        max-width: 150px;
        /* smaller logo */
        margin-bottom: 10px;
    }

    .signUpForm {
        width: 100%;
    }
}

/* Small devices */
@media (max-width: 576px) {
    .signUp {
        padding: 0px 20px;
    }

    .signUpContainer {
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(6px);
        padding: 1rem;
        border-radius: 10px;
        width: 100%;
        max-width: 350px;
        margin: 10px auto;
    }

    .signUpContainer img {
        max-width: 120px;
    }

    .signUpForm input[type="text"][maxlength="1"] {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .btn-primary {
        width: 100%;
        /* full width button for mobile */
    }
}


.signUpForm h2 {
    color: #ff6a00;
    font-weight: bold;
}

.btn-primary {
    background-color: #ff6a00 !important;
    border: none !important;
    border-radius: 30px;
    width: 150px;
    margin-top: 20px;
}

.btn-primary:hover {
    background-color: #d8610c !important;
}

.signUpContainer input::placeholder {
    color: #fff;
}

.form-control {
    background-color: transparent !important;
    border: 2px solid white !important;
    color: white !important;
}

.otpBox {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    text-align: center;
    border-radius: 8px;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
}

.otpBox:focus {
    border-color: #ff6a00;
    outline: none;
    box-shadow: 0 0 5px #ff6a00;
}


/* login page css */


.SignIn {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    background: url("/static/img/background/signInBg.jpg") no-repeat;
    background-size: cover;
    background-position: right -250px top 0px;
}

.SignIn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.314);
    z-index: 1;
}

.signInContainer {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    margin: 5px;
}


@media (max-width: 576px) {
    .signInContainer {
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(6px);
        padding: 0rem;
        border-radius: 10px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        width: 95%;
        max-width: 350px;
        margin: 10px auto;
    }
}

.loginForm h2 {
    color: #ff6a00;
    font-weight: bold;
}

.btn-primary {
    background-color: #ff6a00 !important;
    border: none !important;
    border-radius: 30px;
    width: 150px;
    margin-top: 20px;
}

.btn-primary:hover {
    background-color: #d8610c !important;
}

.signInContainer input::placeholder {
    color: #fff;
}

.form-control {
    background-color: transparent !important;
    border: 2px solid white !important;
    color: white !important;
}


.alert-dismissible .btn-close {
    position: absolute;
    top: -20px !important;
    right: 0;
    z-index: 2;
    padding: 1.25rem 1rem;
}

input::-ms-reveal,
input::-ms-clear {
    display: none;
}

#togglePassword {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.3s ease, color 0.3s ease;
}




#togglePassword:hover {
    transform: translateY(-50%) scale(1.1);
}

@keyframes shake {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }

    25% {
        transform: translateY(-50%) rotate(10deg);
    }

    50% {
        transform: translateY(-50%) rotate(-10deg);
    }

    75% {
        transform: translateY(-50%) rotate(6deg);
    }

    100% {
        transform: translateY(-50%) rotate(0deg);
    }
}

.shake {
    animation: shake 0.5s;
}