/* Base Styles - Preserved Exactly */
.background {
    background-image: url(/images/bgimages/black_img.jpg);
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 10vh 0;
    padding-top: 100px;
}

.container {
    border: 0px solid rgb(var(--primarycolor));
    background-color: transparent;
    width: 90%;
    max-width: 900px;
    height: auto;
    min-height: 500px;
    margin: 0 auto;
    display: flex;
    border-radius: 1em;
    justify-content: space-between;
    position: relative;
    flex-wrap: wrap;
}

/* Form Containers - Preserved Exactly */
.form_ {
    width: 48%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    margin: 2rem 0;
}

.form_::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    backdrop-filter: blur(10px);
    border-radius: 5em;
    border: 1px solid rgb(var(--secondarycolor));
}

.form_ form {
    display: flex;
    flex-direction: column;
    row-gap: 3vh;
    width: 80%;
    z-index: 1;
}

.form_ h1 {
    margin: 0;
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

/* Input Boxes - Preserved Exactly */
.inputbox {
    display: flex;
    position: relative;
    margin-bottom: 1vh;
    width: 100%;
}

.inputbox img {
    max-height: 2vh;
    pointer-events: none;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%) ;
    transform: translateY(-50%);
}

.main_input {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid rgba(var(--secondarycolor), 0.5);
    border-radius: 0.5em;
    color: rgb(var(--htext_color));
    font-size: 1rem;
}

.main_input:focus {
    outline: none;
    border-color: rgb(var(--primarycolor));
}

/* Switch Links - Preserved Exactly but hidden on mobile */
.switch {
    z-index: 1;
    text-align: center;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
}

.switch a {
    border: none; 
    background-color: transparent;
    color: rgb(var(--primarycolor));
    cursor: pointer;
}

.switch label {
    font-weight: normal;
}

/* Cover Section - Preserved Exactly */
.cover {
    position: absolute;
    background-color: rgb(var(--primarycolor));
    width: 50%;
    height: 100%;
    transition: all 1s ease;
    z-index: 2;
    animation: log_anim infinite 5s ease;
}

.cover_content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
    width: 80%;
    height: 100%;
    top: 0;
}

.cover img {
    height: 20vh;
    max-width: 80%;
}

.show_signin {
    border-radius: 50% 20% 30% 40%;
    left: 50%;
}

.show_signup {
    border-radius: 60% 30% 20% 50%;
    left: 0;
}

.upform {
    transform: scale(0);
}

.upform, .inform {
    opacity: 1;
    transition: all 0.3s ease;
}


/* Original Animation - Preserved Exactly */
@keyframes log_anim {
    0% {
        border-radius: 40% 50% 50% 30%;
    }
    30% {
        border-radius: 30% 40% 30% 40% ;
    }
    60% {
        border-radius: 60% 50% 60% 50% ;
    }
    100% {
        border-radius: 40% 50% 50% 30%;
    }
}

/* Error Messages - Preserved Exactly */
.alert-danger {
    color: #ff6b6b;
    background-color: rgba(255, 0, 0, 0.1);
    padding: 0.8rem;
    border-radius: 0.5em;
    font-size: 0.9rem;
}

.alert-danger ul {
    margin: 0;
    padding-left: 1.2rem;
}



.main_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primarycolor), 0.3);
}

/* Responsive Adjustments (Only what's necessary) */
@media (max-width: 1020px) {
    .container{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .cover {
        position: relative;
        width: 95%;
        margin-bottom: 2rem;
        animation: none;
        border-radius: 1em !important;
        left: 0 !important;
        max-width: 500px;
    }
    .form_{
        transform: scale(1) !important;
        margin: 4rem 0;
    }
    .switch{
        display: none !important;
    }
    .form_::before{
        border-radius: 1em !important;
        padding: 2rem 0;
    }
    .form_ {
        width: 95%;
        min-width: unset;
        max-width: 500px;
    }
}


@media (max-width: 480px) {


    .form_ form {
        width: 90%;
    }

    .cover img {
        height: 15vh;
    }
}