/* Login Trigger Button */
.oa-login-trigger {
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.1);
    font-size: 1.4rem;
    margin-top: 3rem;
}

.oa-login-trigger h3 {
    font-weight: bold;
    color: #00157A;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.oa-login-button {
    width: 100%;
    height: 4rem;
    min-height: 4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0.1rem 2.5rem;
    background-color: #00157A;
    border-radius: 50rem;
    font-size: 1.5rem;
    font-weight: 600;
    border: none;
    color: #fff;
}

.oa-login-button-desktop {
    display: block;
}

.oa-login-button-mobile {
    display: none;
}

@media only screen and (max-width: 768px) {
    .oa-login-button-desktop {
        display: none;
    }

    .oa-login-button-mobile {
        display: block;
    }
}

.oa-login-button-mobile .oa-login-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.oa-login-button-mobile .oa-login-trigger h3 {
    margin-bottom: 0;
}

.oa-login-button-mobile .oa-login-button {
    width: auto;
    padding: 0.1rem 5rem;
}

@media only screen and (max-width: 520px) {
    .oa-login-button-mobile .oa-login-trigger {
        flex-direction: column;
        align-items: flex-start;
    }

    .oa-login-button-mobile .oa-login-trigger h3 {
        margin-bottom: 2rem;
    }

    .oa-login-button-mobile .oa-login-button {
        width: 100%;
    }
}

/* Modal Styles */
.oa-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.oa-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.oa-modal-backdrop.show {
    opacity: 1;
}

.oa-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 550px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
    pointer-events: all;
}

.oa-modal.show .oa-modal-content {
    transform: scale(1);
    opacity: 1;
}

.oa-close {
    color: #00157A;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: .3s ease-in-out;
    position: absolute;
    top: 16px;
    right: 15px;
}

.oa-close:hover {
    transform: scale(1.1);
}

.oa-modal-body {
    padding: 5rem;
    position: relative;
}

.oa-modal-body h3 {
    font-weight: bold;
    color: #00157A;
    font-size: 3.2rem;
    margin-bottom: 1rem;
}

/* Form Styles */
.oa-form-group {
    margin-bottom: 1.6rem;
}

.oa-form-group--last {
    margin-bottom: 0;
}

.oa-form-group--input {
    position: relative;
    margin-top: 3.2rem;
}

.oa-form-group label {
    background: #FFF;
    position: absolute;
    top: -10px;
    left: 16px;
    padding: 0 10px;
    font-size: 14px;
    color: #000;
}

.oa-form-group p {
    color: #000;
    font-size: 12px;
}

.oa-form-group a {
    color: #000;
}

.oa-form-group input[type="password"], .oa-form-group input[type="text"] {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border: 1px solid #DCDCDC;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

/* Password Toggle Button */
.oa-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.3s ease;
    z-index: 1;
}

.oa-password-toggle:hover {
    color: #00157A;
}

.oa-password-toggle:focus {
    outline: 2px solid #00157A;
    outline-offset: 2px;
    border-radius: 3px;
}

.oa-eye-icon {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.oa-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 1.5rem 2rem;
    background-color: #00157A;
    border-radius: 50rem;
    font-size: 1.8rem;
    font-weight: 600;
    border: none;
    color: #fff;
}

@media only screen and (max-width: 520px) {
    .oa-modal-body h3 {
        font-size: 2.4rem;
    }

    .oa-modal-body p {
        font-size: 1.4rem;
    }

    .oa-form-group label {
        font-size: 13px;
    }

    .oa-submit-btn{
        width: 100%;
    }
}

.oa-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.oa-login-status {
    padding: 1rem 1.5rem;
    width: 100%;
    background: #F3FAFC;
    border-radius: 6px;
    margin: 0 0 2.5rem 0;
    display: flex;
    justify-content: space-between;
    align-content: center;
}

.oa-login-status p {
    margin: 0;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
}

.oa-logout-btn {
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    color: #000000;
}

.oa-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.oa-filters h4 {
    margin-top: 0;
    color: #0073aa;
}

.oa-filter-group {
    margin-bottom: 10px;
}

.oa-filter-group label {
    display: block;
    margin-bottom: 5px;
}

.oa-filter-group select {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

#oa-login-message.success {
    border-radius: 3px;
    margin-top: 10px;
    padding: 10px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#oa-login-message.error {
    border-radius: 3px;
    margin-top: 10px;
    padding: 10px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
