/**
 * Estilos del frontend - Táctica Verified Users
 * Colores Verde Militar: #3d5a3c, #4a6741, #556b2f, #6b8e23
 */

/* Modal de login */
.tvu-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
}

.tvu-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tvu-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(45, 74, 44, 0.5), 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 550px;
    width: 90%;
    z-index: 1000000;
    animation: tvuModalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

@keyframes tvuModalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -70%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.tvu-modal-header {
    background: linear-gradient(135deg, #2d4a2c 0%, #3d5a3c 50%, #4a6741 100%);
    padding: 30px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tvu-modal-icon {
    text-align: center;
    margin-bottom: 15px;
}

.tvu-modal-icon svg {
    width: 60px;
    height: 60px;
    fill: #ffffff;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.tvu-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
}

.tvu-modal-close:hover {
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.3);
    transform: rotate(90deg);
}

.tvu-modal-body {
    padding: 40px 35px;
}

.tvu-modal-body h2 {
    margin: 0 0 20px 0;
    font-size: 26px;
    color: #3d5a3c;
    text-align: center;
    font-weight: 700;
    line-height: 1.3;
}

.tvu-modal-body p {
    margin: 0 0 15px 0;
    font-size: 16px;
    line-height: 1.7;
    color: #4a6741;
    text-align: center;
}

.tvu-modal-body p.tvu-highlight {
    background: linear-gradient(135deg, #f0f5eb 0%, #e8f5e0 100%);
    border-left: 5px solid #5a8f3a;
    padding: 18px;
    border-radius: 10px;
    margin: 25px 0;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(90, 143, 58, 0.1);
}

.tvu-modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    justify-content: center;
    flex-wrap: wrap;
}

.tvu-modal-buttons .button {
    flex: 1;
    min-width: 160px;
    padding: 16px 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    display: inline-block !important;
    position: relative !important;
    overflow: hidden !important;
    line-height: 1.2 !important;
}

/* Botón Primario - Iniciar Sesión */
.tvu-modal-buttons .tvu-btn-primary,
.tvu-modal-buttons a.tvu-btn-primary {
    background: linear-gradient(135deg, #3d5a3c 0%, #4a6741 50%, #556b2f 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(61, 90, 60, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
}

.tvu-modal-buttons .tvu-btn-primary:hover,
.tvu-modal-buttons a.tvu-btn-primary:hover {
    background: linear-gradient(135deg, #2d4a2c 0%, #3d5a3c 50%, #4a6741 100%) !important;
    transform: translateY(-4px) scale(1.03) !important;
    box-shadow: 0 12px 35px rgba(61, 90, 60, 0.5), 0 6px 18px rgba(0, 0, 0, 0.2) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Botón Secundario - Registrarse */
.tvu-modal-buttons .tvu-btn-secondary,
.tvu-modal-buttons a.tvu-btn-secondary {
    background: linear-gradient(135deg, #6b8e23 0%, #7aa83e 50%, #8bc34a 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(107, 142, 35, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
}

.tvu-modal-buttons .tvu-btn-secondary:hover,
.tvu-modal-buttons a.tvu-btn-secondary:hover {
    background: linear-gradient(135deg, #5a7a1f 0%, #6b8e23 50%, #7aa83e 100%) !important;
    transform: translateY(-4px) scale(1.03) !important;
    box-shadow: 0 12px 35px rgba(107, 142, 35, 0.5), 0 6px 18px rgba(0, 0, 0, 0.2) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Estilos para los iconos en los botones */
.tvu-modal-buttons .button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600 !important;
    position: relative;
    z-index: 1;
}

/* ===== ESTILOS MY ACCOUNT PAGE ===== */

/* Forzar estilos en toda la página de My Account */
body.woocommerce-account,
.woocommerce-account body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* Contenedor principal */
.woocommerce-account .woocommerce,
body.woocommerce-account .woocommerce {
    max-width: 1600px !important;
    margin: 0 auto !important;
    padding: 30px 20px !important;
    background: transparent !important;
}

/* Grid principal para login/registro */
.woocommerce-account .col2-set,
body.woocommerce-account .col2-set {
    display: flex !important;
    flex-direction: row !important;
    gap: 50px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    max-width: 1500px !important;
    width: 100% !important;
    align-items: flex-start !important;
    justify-content: center !important;
}

/* Columnas de login y registro */
.woocommerce-account .col-1,
.woocommerce-account .col-2,
body.woocommerce-account .col-1,
body.woocommerce-account .col-2 {
    background: #ffffff !important;
    padding: 50px 45px !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 4px 15px rgba(61, 90, 60, 0.1) !important;
    border: 1px solid rgba(61, 90, 60, 0.1) !important;
    margin: 0 !important;
    width: 52% !important;
    max-width: 650px !important;
    min-width: 450px !important;
    flex: 1 !important;
    float: none !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Efecto de gradiente sutil en las columnas */
.woocommerce-account .col-1::before,
.woocommerce-account .col-2::before,
body.woocommerce-account .col-1::before,
body.woocommerce-account .col-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3d5a3c 0%, #6b8e23 100%);
}

/* Títulos de las secciones */
.woocommerce-account .col-1 h2,
.woocommerce-account .col-2 h2,
body.woocommerce-account .col-1 h2,
body.woocommerce-account .col-2 h2 {
    color: #3d5a3c !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    margin: 0 0 30px 0 !important;
    text-align: center !important;
    position: relative !important;
    padding-bottom: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Línea decorativa bajo los títulos */
.woocommerce-account .col-1 h2::after,
.woocommerce-account .col-2 h2::after,
body.woocommerce-account .col-1 h2::after,
body.woocommerce-account .col-2 h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #3d5a3c 0%, #6b8e23 100%);
    border-radius: 2px;
}

/* Campos de formulario */
.woocommerce-account .woocommerce-Input,
.woocommerce-account input[type="text"],
.woocommerce-account input[type="email"],
.woocommerce-account input[type="password"],
body.woocommerce-account .woocommerce-Input,
body.woocommerce-account input[type="text"],
body.woocommerce-account input[type="email"],
body.woocommerce-account input[type="password"] {
    width: 100% !important;
    padding: 15px 18px !important;
    border: 2px solid #e9ecef !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    background: #f8f9fa !important;
    color: #333 !important;
}

.woocommerce-account .woocommerce-Input:focus,
.woocommerce-account input[type="text"]:focus,
.woocommerce-account input[type="email"]:focus,
.woocommerce-account input[type="password"]:focus,
body.woocommerce-account .woocommerce-Input:focus,
body.woocommerce-account input[type="text"]:focus,
body.woocommerce-account input[type="email"]:focus,
body.woocommerce-account input[type="password"]:focus {
    border-color: #3d5a3c !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(61, 90, 60, 0.1) !important;
    outline: none !important;
}

/* Botones */
.woocommerce-account .woocommerce-Button,
.woocommerce-account .button,
body.woocommerce-account .woocommerce-Button,
body.woocommerce-account .button {
    background: linear-gradient(135deg, #3d5a3c 0%, #4a6741 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 16px 32px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    margin-top: 20px !important;
    box-shadow: 0 6px 20px rgba(61, 90, 60, 0.3) !important;
}

.woocommerce-account .woocommerce-Button:hover,
.woocommerce-account .button:hover,
body.woocommerce-account .woocommerce-Button:hover,
body.woocommerce-account .button:hover {
    background: linear-gradient(135deg, #2d4a2c 0%, #3d5a3c 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(61, 90, 60, 0.4) !important;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .woocommerce-account .col2-set,
    body.woocommerce-account .col2-set {
        flex-direction: column !important;
        gap: 25px !important;
        padding: 0 15px !important;
        max-width: 600px !important;
    }
    
    .woocommerce-account .col-1,
    .woocommerce-account .col-2,
    body.woocommerce-account .col-1,
    body.woocommerce-account .col-2 {
        width: 100% !important;
        max-width: none !important;
        min-width: auto !important;
        padding: 35px 30px !important;
        border-radius: 12px !important;
    }
    
    .woocommerce-account .col-1 h2,
    .woocommerce-account .col-2 h2,
    body.woocommerce-account .col-1 h2,
    body.woocommerce-account .col-2 h2 {
        font-size: 24px !important;
        margin-bottom: 25px !important;
    }
}
