/**
 * Password Recovery Page Styles - Xeora with WOW Effect
 * 
 * @package Xeora
 * @subpackage CSS/Frontend
 * @since 3.8.0
 */

/* Password Recovery Main Container */
.xeora-password-recovery-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

/* Animated Background Particles */
.xeora-password-recovery-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: particleMove 15s ease-in-out infinite;
}

@keyframes particleMove {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* Header Section */
.xeora-password-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease-out;
}

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

.xeora-icon-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
    }
}

.xeora-icon-circle::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    border-radius: 50%;
    z-index: -1;
    animation: rotateBorder 3s linear infinite;
    opacity: 0.8;
}

@keyframes rotateBorder {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.xeora-icon-circle i {
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.xeora-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.xeora-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* Password Recovery Card */
.xeora-password-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    width: 90%;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    animation: slideUp 0.8s ease-out 0.2s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alert Styles */
.xeora-alert {
    margin-bottom: 2rem;
    border-radius: 15px;
    padding: 1.5rem;
    border-left: none;
    position: relative;
    overflow: hidden;
}

.xeora-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
    animation: slideAlert 0.8s ease-out;
}

@keyframes slideAlert {
    from { width: 0; }
    to { width: 100%; }
}

.xeora-alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.xeora-alert-icon {
    display: inline-block;
    margin-right: 1rem;
    font-size: 1.5rem;
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.xeora-alert-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.xeora-alert-content p {
    margin: 0;
    opacity: 0.9;
}

/* Form Styles - Enhanced */
.xeora-password-form {
    margin-top: 2rem;
}

.xeora-form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.xeora-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.xeora-form-control {
    width: 100%;
    padding: 15px 20px !important;
    font-size: 1rem !important;
    border: 2px solid #e9ecef !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    background: rgba(255, 255, 255, 0.9) !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-sizing: border-box !important;
}

.xeora-form-control:focus {
    outline: none !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    transform: translateY(-2px) !important;
}

/* Input Icons */
.xeora-input-wrapper {
    position: relative;
}

.xeora-input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.xeora-form-control:focus + .xeora-input-icon {
    color: #667eea;
}

/* Buttons - Always visible with proper colors */
.xeora-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.xeora-btn {
    padding: 15px 30px !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    min-width: 140px !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 1;
}

.xeora-btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
}

.xeora-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6) !important;
    background: linear-gradient(135deg, #5a67d8, #6b46c1) !important;
}

.xeora-btn-secondary {
    background: white !important;
    color: #667eea !important;
    border: 2px solid #667eea !important;
}

.xeora-btn-secondary:hover {
    background: #667eea !important;
    color: white !important;
    transform: translateY(-2px) !important;
}

/* Links */
.xeora-form-links {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.xeora-form-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.xeora-form-links a:hover {
    color: #764ba2;
}

.xeora-form-links a::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.xeora-form-links a:hover::after {
    transform: translateX(3px);
}

/* Loading State */
.xeora-loading {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.xeora-loading.active {
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Floating Elements */
.xeora-float {
    position: absolute;
    opacity: 0.1;
    animation: floatElement 8s ease-in-out infinite;
}

.xeora-float-1 {
    top: 10%;
    right: 10%;
    font-size: 2rem;
    animation-delay: 0s;
}

.xeora-float-2 {
    bottom: 15%;
    left: 5%;
    font-size: 1.5rem;
    animation-delay: 2s;
}

.xeora-float-3 {
    top: 60%;
    right: 5%;
    font-size: 1.8rem;
    animation-delay: 4s;
}

@keyframes floatElement {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .xeora-password-recovery-page {
        padding: 1rem 0;
    }
    
    .xeora-password-card {
        padding: 2rem;
        margin: 1rem;
        max-width: 100%;
        width: 100%;
    }
    
    .xeora-title {
        font-size: 2rem;
    }
    
    .xeora-form-actions {
        flex-direction: column;
    }
    
    .xeora-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .xeora-password-card {
        padding: 1.5rem;
        max-width: 95%;
    }
    
    .xeora-form-actions {
        gap: 0.8rem;
    }
    
    .xeora-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .xeora-password-card {
        padding: 1.5rem;
    }
    
    .xeora-form-actions {
        gap: 0.8rem;
    }
    
    .xeora-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Error States */
.xeora-form-control.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.xeora-error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.xeora-form-group.error .xeora-error-message {
    display: block;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ===== CLASSI UTILITÀ MANCANTI ===== */

/* Container e Layout */
.xeora-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.xeora-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.xeora-col-md-8 {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .xeora-col-md-8 {
        width: 66.666667%;
        margin: 0 auto;
        float: none;
    }
}

.xeora-offset-md-2 {
    margin-left: 0;
}

@media (min-width: 992px) {
    .xeora-offset-md-2 {
        margin-left: 16.666667%;
    }
}

/* Card */
.xeora-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.xeora-card-body {
    padding: 3rem;
}

/* Form */
.xeora-form {
    margin-top: 2rem;
}

.xeora-lostpassword-form .xeora-form-group {
    margin-bottom: 1.5rem;
}

.xeora-lostpassword-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.xeora-lostpassword-form input[type="text"],
.xeora-lostpassword-form input[type="email"],
.xeora-lostpassword-form input[type="password"] {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
}

.xeora-lostpassword-form input[type="text"]:focus,
.xeora-lostpassword-form input[type="email"]:focus,
.xeora-lostpassword-form input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.xeora-lostpassword-form .submit {
    margin-top: 1.5rem;
}

.xeora-lostpassword-form #wp-submit {
    width: 100%;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.xeora-lostpassword-form #wp-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* Form Footer */
.xeora-form-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.xeora-form-footer p {
    margin: 0;
    color: #6c757d;
}

.xeora-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.xeora-link:hover {
    color: #764ba2;
}

/* Info Cards */
.xeora-password-info {
    margin-top: 3rem;
}

.xeora-info-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.xeora-info-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.xeora-info-card:hover {
    transform: translateY(-5px);
}

.xeora-info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.xeora-info-icon i {
    font-size: 1.5rem;
    color: white;
}

.xeora-info-card h5 {
    margin: 0 0 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.xeora-info-card p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.xeora-info-card a {
    color: #667eea;
    text-decoration: none;
}

.xeora-info-card a:hover {
    color: #764ba2;
}

/* Classi utilità */
.text-center {
    text-align: center !important;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-2 { margin-top: 0.5rem !important; }

/* Alert Danger */
.xeora-alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.xeora-alert-danger::before {
    background: linear-gradient(90deg, #dc3545, #c82333);
}
