/* eagle-auth-v2.css */
/* Core Bug Resolution (Mobile Scroll-Lock) */
.eagle_shop_auth_modal_container {
    position: relative; /* Changed from fixed since Woostify's modal is already fixed/absolute */
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    will-change: transform;
    z-index: 999999;
    padding: 20px;
    background: #fff;
}

/* Ensure the Woostify popup allows our inner container to scroll */
#dialog-login-account .dialog-widget-content,
.woostify-login-popup .woostify-modal-content {
    overflow: hidden !important;
    padding: 0 !important;
}

/* MNC-Level Premium Visual Design */
.eagle_shop_auth_modal_container .form-row {
    margin-bottom: 20px;
}

.eagle_shop_auth_modal_container label {
    display: block;
    font-weight: 500;
    color: #1a202c;
    margin-bottom: 8px;
    font-size: 14px;
}

.eagle_shop_auth_modal_container input.woocommerce-Input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    background-color: #f7fafc;
    transition: all 0.3s ease;
}

.eagle_shop_auth_modal_container input.woocommerce-Input:focus {
    background-color: #fff;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
    outline: none;
}

/* Client-Side Validation Classes */
.eagle_shop_auth_modal_container input.eagle-valid {
    border-color: #48bb78 !important;
    background-color: #f0fff4 !important;
}

.eagle_shop_auth_modal_container input.eagle-invalid {
    border-color: #f56565 !important;
    background-color: #fff5f5 !important;
}

.eagle_shop_auth_hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #f56565;
    animation: eagleFadeIn 0.3s;
}

@keyframes eagleFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Submit Button Enhancement */
.eagle_shop_auth_modal_container button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: #0f4a8a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.1s;
}

.eagle_shop_auth_modal_container button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.eagle_shop_auth_modal_container button[type="submit"]:active:not(:disabled) {
    transform: scale(0.98);
}