.form-container {
    position: relative;
    width: 22rem; 
    height: auto;
    margin: auto;
    padding: 2rem;
    display: flex;
    justify-content: center;
    background: white;
}

#switch {
    display: none;
}

.sign-up-container,
.log-in-container {
    position: absolute;
    display: flex;
    flex-direction: column;
    width: 18rem;
    height: auto;
    background: white;
    color: black;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 2px solid #ccc;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.15); 
}

/* .form-title {
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
    color: #b80606;
} */
.form-title {
      display: flex;
      align-items: center;        /* Vertically align logo & text */
      justify-content: center;    /* Center horizontally */
      gap: 10px;                  /* Space between image and text */
      font-size: 1.3rem;
      font-weight: bold;
      color: #000000;
      text-align: center;
      margin: 20px 0;
    }

    .form-title img {
      height: 50px;               /* Adjust logo size */
      width: auto;
      vertical-align: middle;
    }

    /* Optional: make it responsive on smaller screens */
    @media (max-width: 600px) {
      .form-title {
        flex-direction: column;   /* Stack logo above text on small screens */
        gap: 5px;
      }
    }
.switch-label {
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    text-align: center;
    margin-bottom: 0.5rem;
}

:where(.sign-up-form, .log-in-form) label {
    font-size: 0.9rem;
    padding-top: 0.3rem;
    font-weight: 500;
}

:where(.sign-up-form, .log-in-form) input {
    width: 100%;
    height: 2rem;
    background-color: #f5f5f5;
    color: black;
    border: 1px solid #ccc;
    padding: 0.3rem;
    border-radius: 0.3rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

:where(.sign-up-form, .log-in-form) input:focus-visible {
    outline: none;
    border: 1px solid black;
}

:where(.sign-up-form, .log-in-form) button {
    width: 100%;
    height: 2.5rem;
    background-color: #8e91a2;
    color: 000000;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    padding: 0.5rem;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 0.5rem;
}


:where(.sign-up-form, .log-in-form) button:hover {
    background-color: #333;
}

.forgot-pwd {
    font-size: 0.75rem;
    text-decoration: underline;
    margin-left: auto;
    cursor: pointer;
}

.sign-up-container {
    animation: hello 0.5s linear forwards;
}

.log-in-container {
    animation: unhello 0.5s linear forwards;
}

#switch:checked ~ .sign-up-container {
    animation: unhello 0.5s linear forwards;
}

#switch:checked ~ .log-in-container {
    animation: hello 0.5s linear forwards;
}

@keyframes hello {
    0% {
        transform: rotateY(-90deg);
        display: none;
    }
    50% {
        transform: rotateY(-90deg);
        display: flex;
    }
    100% {
        transform: rotateY(0deg);
        display: flex;
    }
}

@keyframes unhello {
    0% {
        transform: rotateY(0deg);
        display: flex;
    }
    50% {
        transform: rotateY(90deg);
        display: flex;
    }
    100% {
        transform: rotateY(90deg);
        display: none;
    }
}
.custom-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: white;
    appearance: none; /* Removes default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
}
.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}
/* Add a custom arrow icon */
.custom-select::after {
    content: '\25BC'; /* Downwards arrow */
    font-size: 16px;
    color: #333;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Hover and Focus States */
.custom-select:hover {
    border-color: #3366ff;
}

.custom-select:focus {
    border-color: #3366ff;
    outline: none;
    box-shadow: 0 0 5px rgba(51, 102, 255, 0.5);
}

/* Styling for the select box when it's opened */
.custom-select.opened {
    background-color: #f4f4f9; /* Light background when clicked */
    border-color: #3366ff; /* Change border color */
}

/* Customize the option list */
.custom-select option {
    padding: 10px;
    font-size: 14px;
}

/* Add a hover effect for options */
.custom-select option:hover {
    background-color: #3366ff;
    color: white;
}
