/*
Plugin Name: My Account WSE
Description: Styles for the login page
*/

/* Main Content & Card */
.wse-login-main {
    position: relative;
    min-height: calc(100vh - 250px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-color: #f9fafb;
    overflow: hidden;
}

/* Background Grid Pattern - Contained within main area */
.wse-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/fondo-cuadros.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
}

.wse-login-card {
    position: relative;
    z-index: 2;
    background-color: white;
    width: 100%;
    max-width: 440px;
    border-radius: 16px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    padding: 40px;
    border: 1px solid #f3f4f6;
    text-align: left;
}

.wse-login-card h2 {
    margin: 0 0 40px 0;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.wse-login-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 40px;
}

.wse-tab {
    background: transparent !important;
    border: none !important;
    padding: 12px 0 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    transition: all 0.2s;
    margin-bottom: -1px;
}

.wse-tab.active {
    color: #1A47C7 !important;
    border-bottom-color: #1A47C7 !important;
    background: transparent !important;
}

.wse-tab:hover {
    background: transparent !important;
}

.wse-tab:hover:not(.active) {
    color: #374151 !important;
}

.wse-form-group {
    text-align: left;
    margin-bottom: 32px;
}

.wse-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.wse-form-group input {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 1px solid #9ca3af !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    color: #111827 !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: white !important;
}

.wse-form-group input:focus {
    outline: none;
    border-color: #1A47C7;
    box-shadow: 0 0 0 3px rgba(26, 71, 199, 0.1);
}

.wse-form-group input::placeholder {
    color: #9ca3af;
}

.wse-btn-submit {
    width: 100% !important;
    background-color: #1A47C7 !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 16px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.2s;
    margin-top: 16px !important;
}

.wse-btn-submit:hover {
    background-color: #2e05a8 !important;
}

.wse-forgot-pass {
    margin-top: 32px;
    margin-bottom: 32px;
    text-align: center;
}

.wse-forgot-pass a {
    color: #1A47C7;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.wse-forgot-pass a:hover {
    text-decoration: underline;
}

.wse-form-divider {
    height: 1px;
    background-color: #E5E7EB;
    margin: 32px 0;
}

.wse-register-prompt {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 32px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.wse-register-prompt a {
    color: #1A47C7;
    text-decoration: none;
    font-weight: 500;
}

.wse-register-prompt a:hover {
    text-decoration: underline;
}

.wse-form-footer {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-align: center;
}

/* Tab panels */
.wse-form-panel {
    display: none;
}

.wse-form-panel.active {
    display: block;
}

/* reCAPTCHA badge */
.grecaptcha-badge {
    visibility: visible !important;
}

/* Forgot password */
.wse-card-forgot h2 {
    margin: 0 0 12px 0;
    font-size: 28px;
    font-weight: 600;
    color: #111827;
}

.wse-forgot-desc {
    color: #4a5462;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 28px 0;
}

.wse-forgot-note {
    color: #6a7180;
    font-size: 12px;
    margin: 8px 0 4px 0;
    line-height: 1.4;
}

.wse-forgot-back {
    text-align: center;
    margin-top: 22px;
}

.wse-forgot-help {
    color: #6a7180;
    font-size: 13px;
    text-align: center;
    margin: 18px 0 0 0;
    line-height: 1.5;
}

.wse-forgot-help a {
    color: #1946c7;
    text-decoration: none;
    font-weight: 500;
}

.wse-forgot-help a:hover {
    text-decoration: underline;
}

.wse-back-link {
    color: #1946c7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.wse-back-link:hover {
    line-height: 1.5;
    text-align: left;
}

}

.wse-login-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

.wse-error-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dc2626;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.wse-error-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.wse-error-text strong {
    color: #991b1b;
    font-weight: 600;
    font-size: 14px;
}

.wse-error-text span {
    color: #b91c1c;
    font-size: 13px;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
    /* Login Card */
    .wse-login-card {
        padding: 32px 20px;
        margin: 20px 16px;
        border-radius: 12px;
    }
    .wse-login-card h2 {
        font-size: 24px;
        margin-bottom: 24px;
    }
    .wse-login-tabs {
        margin-bottom: 24px;
    }
}
