.error {
    color: #ff0000;
    padding: 5px 10px;
    margin: 5px;
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 10px;
}
.error span {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}
.error span i{
    margin-right: 5px;
    font-size: 1.2rem;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Login Container */
.login-container {
    height: auto;
    width: 100%;
    max-width: 450px;
    background: white;
    overflow: hidden;
    margin: 0 10px;
}

/* Login Form */
.login-form {
    padding: 20px;
    border: 1px solid rgb(184, 184, 184);
    border-radius: 20px;
}

.login-header {
    text-align: left;
}

.login-header .login-img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    display: block;
    margin: auto;
}

.login-header p {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: large;
    color: #000000;
    margin-bottom: 15px;
}

/* Form Groups */
.login-form-group {
    margin-bottom: 10px;
    position: relative;
}

.login-form-group label {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 10px;
    color: #362d2d;
}

.login-form-group .input-with-icon {
    position: relative !important;
    overflow: hidden;
}

.login-form-group input {
    font-family: var(--font-main);
    font-weight: 600;
    width: 100%;
    padding: 15px 45px;
    border: none;
    border-radius: 10px;
    font-size: medium;
    transition: all 0.3s ease;
    background-color: rgba(241, 241, 241);
    color: #000000;
    outline: none;
    text-indent: 15px;
}

.login-form-group input::placeholder {
    color: #6a6a6a;
}

.login-form-group .input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #858585;
    font-size: 1.1rem;
    z-index: 1;
}

.login-form-group .fa {
    position: absolute;
    left: 0;
    top: 50%;
    color: #878787;
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 2;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ff0000;
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 2;
    padding: 5px;
}

/* Submit Button */
.submit-btn {
    font-family: var(--font-main);
    font-weight: 600;
    width: 50%;
    display: block;
    margin: 5px auto;
    padding: 10px;
    background: rgb(0, 128, 255);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}


/* Signup Section */
.signup-section {
    text-align: center;
    margin-top: 15px;
    border-top: 1px solid #dfe6e9b6;
    font-size: 1rem;
    padding: 10px;
}

.signup-section p {
    color: #636e72;
    margin-bottom: 10px;
    font-family: var(--font-main);
    font-weight: 600;
}

.signup-link {
    font-family: var(--font-main);
    font-weight: 700;
    color: #006eff;
    text-decoration: none;
    display: inline-block;
}

/* Forgot Password */
.forgot-password {
    font-family: var(--font-main);
    font-weight: 600;
    text-align: right;
    margin: 10px;
    margin-left: auto;
    background-color: rgb(0, 106, 255, 0.1);
    border-radius: 20px;
    padding: 5px 10px;
    width: fit-content;
    cursor: pointer;
}

.forgot-link {
    color: #006eff;
    text-decoration: none;
    font-size: small;
    transition: color 0.3s ease;
    font-family: var(--font-main);
    font-weight: 600;
}

.continue-with {
    margin-top: 10px;
    padding: 15px 0;
}

.continue-with .divider {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.continue-with .divider::before,
.continue-with .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #dfe6e9;
}

.continue-with .divider span {
    color: #636e72;
    font-size: 0.85rem;
    font-family: var(--font-main);
    font-weight: 600;
    text-align: center;
    flex: 0;
    white-space: nowrap;
}

.continue-with .googleLoginBtn {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
    height: 50px;
    margin: auto;
}

.gsi-material-button {
    background-color: WHITE;
    background-image: none;
    border: 1px solid #747775;
    -webkit-border-radius: 20px;
    border-radius: 20px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #000000;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 14px;
    height: 40px;
    letter-spacing: 0.25px;
    outline: none;
    overflow: hidden;
    padding: 0 12px;
    position: relative;
    text-align: center;
    -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
    transition: background-color .218s, border-color .218s, box-shadow .218s;
    vertical-align: middle;
    white-space: nowrap;
    width: auto;
    max-width: 400px;
    min-width: min-content;
    -webkit-tap-highlight-color: transparent;
}

.gsi-material-button .gsi-material-button-icon {
    height: 20px;
    margin-right: 10px;
    min-width: 20px;
    width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
    -webkit-align-items: center;
    align-items: center;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    height: 100%;
    justify-content: space-between;
    position: relative;
    width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
    -webkit-flex-grow: 1;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
    -webkit-transition: opacity .218s;
    transition: opacity .218s;
    bottom: 0;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.gsi-material-button:disabled {
    cursor: default;
    background-color: #ffffff61;
    border-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
    opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
    opacity: 38%;
}


/* modals */

.forgot_password_cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.forgot_password_cover.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.forgot_password_modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

.forgot_password_modal .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-direction: row;
    padding: 10px 15px;
    border-bottom: 1px solid rgb(196, 196, 196);
}

.header i {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s ease;
    background-color: #636e72;
    border-radius: 10px;
}

.forgot_password_modal h2 {
    font-family: var(--font-main);
    font-weight: 700;
    color: #000000;
    font-size: large;
    font-weight: 600;
}

.forgot_password_modal p {
    font-family: var(--font-main);
    font-weight: 600;
    color: #636e72;
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.5;
    padding: 0 15px;
    text-align: left;
}



.forgot-password-form-group {
    padding: 10px;

}

.forgot-password-form-group label {
    font-family: var(--font-main);
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    color: #2d3436;
    font-weight: 600;
    font-size: 0.8rem;
    text-align: left;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #414141;
    font-size: 1.1rem;
    z-index: 1;
}

.input-with-icon input {
    font-family: var(--font-main);
    font-weight: 700;
    width: 100%;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    background-color: rgba(241, 241, 241);
    color: #000000;
    outline: none;
    text-indent: 15px;
}

.forgot-password-form-group button {
    font-family: var(--font-main);
    font-weight: 700;
    width: 70%;
    padding: 10px;
    background: rgb(0, 128, 255);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.forgot-password-form-group button:disabled {
    background-color: rgba(143, 143, 143, 0.5);
    color: #ffffff;
    cursor: not-allowed;
}

.forgot_password_modal .forgot-message {
    border: 1px solid rgb(196, 196, 196);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    display: none;
}

.forgot-message .message {
    font-family: var(--font-main);
    font-weight: 700;
    color: #000000;
    font-size: 0.9rem;
}