* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Elementos decorativos de fondo */
body::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -250px;
    right: -250px;
    animation: float 6s ease-in-out infinite;
}

body::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    bottom: -200px;
    left: -200px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Header de seguridad */
.security-header {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.95;
    z-index: 10;
}

.security-header i {
    font-size: 18px;
}

/* Contenedor principal */
.recovery-container {
    background: white;
    border-radius: 24px;
    padding: 50px 45px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 5;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Títulos */
.recovery-title {
    text-align: center;
    color: #0f172a;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.recovery-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 35px;
    line-height: 1.5;
}

/* Form group */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Input container con icono */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 18px;
    color: #94a3b8;
    font-size: 18px;
    transition: color 0.3s ease;
}

.form-group input {
    width: 100%;
    padding: 16px 18px 16px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #1e293b;
    font-size: 15px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.form-group input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.form-group input:focus {
    outline: none;
    border-color: #06B6D4;
    background: white;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.form-group input:focus + i {
    color: #06B6D4;
}

/* Botón principal */
.recovery-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(6, 182, 212, 0.3);
    margin-top: 10px;
}

.recovery-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(6, 182, 212, 0.4);
}

.recovery-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

/* Link de volver */
.back-link {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
}

.back-link a {
    color: #06B6D4;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.back-link a:hover {
    color: #0891B2;
    gap: 8px;
}

.back-link a i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.back-link a:hover i {
    transform: translateX(-3px);
}

/* Divider con texto */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    color: #94a3b8;
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.divider::before {
    margin-right: 15px;
}

.divider::after {
    margin-left: 15px;
}

/* Info adicional */
.info-box {
    background: #f0f9ff;
    border-left: 4px solid #06B6D4;
    border-radius: 8px;
    padding: 16px;
    margin-top: 25px;
    display: flex;
    align-items: start;
    gap: 12px;
}

.info-box i {
    color: #06B6D4;
    font-size: 20px;
    margin-top: 2px;
}

.info-box p {
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 480px) {
    body::before,
    body::after {
        display: none;
    }

    .recovery-container {
        margin: 20px;
        padding: 40px 30px;
        border-radius: 20px;
    }
    
    .recovery-title {
        font-size: 24px;
    }

    .recovery-subtitle {
        font-size: 14px;
    }

    .security-header {
        font-size: 12px;
        top: 20px;
    }
}

/* Loading state para el botón */
.recovery-btn.loading {
    pointer-events: none;
    position: relative;
    color: transparent;
}

.recovery-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Animación de éxito */
.success-message {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.4s ease-out;
}

.success-message i {
    color: #22c55e;
    font-size: 24px;
}

.success-message p {
    color: #166534;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}