* {
    margin: 0;
    padding: 0;
    max-width: 100%;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    background: url('../images/asian-lady-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

form {
    display: flex;
}

.login-container,
.reset-password-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    margin-top: 5rem;
    padding: 2rem 3rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    overflow-y: scroll;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.login-container::-webkit-scrollbar,
.reset-password-container::-webkit-scrollbar {
    display: none;
}

.login-form,
.social-login,
.signup-link,
#reset-password-form {
    flex-direction: column;
    position: relative;
    visibility: hidden;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.login-form.visible,
.social-login.visible,
.signup-link.visible,
#reset-password-form.visible {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.login-form h2 {
    margin-bottom: 2rem;
    color: #333;
}

.login-form input {
    font-size: 16px;
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-form input:focus {
    border: 2px solid #6a0dad75;
    box-shadow: 0 0 8px 2px rgba(106, 13, 173, 0.396);
    outline: none;
}

.forgot-password {
    font-size: 14px;
    color: #6a0dad;
    text-decoration: none;
    align-self: flex-end;
    margin-top: -.5rem;
    margin-bottom: .5rem;
}


.forgot-password:hover {
    text-decoration: underline;
    font-weight: bold;
}

.login-form button {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    background: #6a0dad;
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
}

.login-form button:hover {
    background: #a94dd0;
}

.login-form button:disabled {
    background: #a94dd0;
    cursor: not-allowed;
}

.login-form button:focus {
    box-shadow: 0 0 8px 2px rgba(106, 13, 173, 0.396);
    outline: none;
    background: #a94dd0;
}

.social-login {
    text-align: center;
}

.social-login h4 {
    color: #333;
    margin-bottom: 1rem;
}

.social-login button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    /* font-size: 18px; */
    /* color: white; */
    /* width: 2.5rem; */
    /* height: 2.5rem; */
    /* border: none; */
    /* border-radius: 50%; */
    /* font-weight: bold; */
}

.google-btn {
    background-color: #ffffff;
    border: 2px solid #ddd;
    border-radius: 50px;
    padding: 5px 20px;
    width: 160px;
    /* display: flex; */
    /* justify-content: center; */
    /* align-items: center; */
    /* cursor: pointer; */
    /* transition: all 0.3s ease; */
}

.google-btn:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.google-btn:disabled {
    background-color: #ffffff;
}

.google-btn img {
    height: 30px;
}

.google-login {
    background-color: #db4437;
}

.google-login:hover {
    background-color: #a83427;
}

.microsoft-login {
    background-color: #0078d4;
}

.microsoft-login:hover {
    background-color: #004b85;
}

.facebook-login {
    background-color: #3b5998;
}

.facebook-login:hover {
    background-color: #213153;
}

.signup-link {
    margin-top: 1rem;
    text-align: center;
    color: #333;
}

.signup-link a {
    color: #6a0dad;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
    font-weight: bold;
}

.error-message {
    font-family: 'Josefin sans', 'Lucida Sans', Geneva, Verdana, sans-serif;
    color: red;
    margin-bottom: 15px;
    margin-top: -1rem;
    display: none;
}

#reset-password-form p {
    margin-bottom: .5rem;
}

#reset-password-form a {
    color: #6a0dad;
    text-decoration: none;
    align-items: center;
    margin-bottom: .5rem;
    margin-top: -.5rem;
    display: inline-flex;
    align-self: flex-start;
}

#reset-password-form a:hover span {
    text-decoration: underline;
    font-weight: bold;
}

.back-to-login {
    font-size: 14px;
}

.bx-arrow-back {
    margin-right: 8px
}

.password-field {
    position: relative;
}

.password-field input {
    width: 100%;
    padding-right: 40px;
}

.password-field .toggle-password {
    position: absolute;
    top: 35%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    color: #6d6d6d;
}

.login-warning {
    display: none;
    margin-bottom: 1rem;
    padding: 0.8rem;
    border: 1px solid #f5c6cb;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    align-items: center;
    gap: 0.5rem;
}

.login-warning .alert-icon {
    font-size: 1.5rem;
}

.reset-success {
    display: none;
    margin-bottom: 1rem;
    padding: 0.8rem;
    border: 1px solid #abe0b7;
    background-color: #b2dbbb;
    color: #25412b;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    align-items: center;
    gap: 0.5rem;
}

.reset-success .alert-icon {
    font-size: 1.5rem;
}



@media (max-width: 768px) {

    .login-container,
    .reset-password-container {
        padding: 1.5rem;
        margin-top: 2rem;
    }
}

@media (max-width: 530px) {

    .login-container,
    .reset-password-container {
        max-height: 100vh;
        border-radius: 0;
        padding-left: 1rem;
        margin-top: .5rem;
    }
}

@media (max-height: 500px) {

    .login-container,
    .reset-password-container {
        max-height: 80vh;
        margin: 5rem 0;
    }
}