/* ==================== FORGOT PASSWORD - ESTILOS EXCLUSIVOS ==================== */

/* Contenedor principal */
.forgot-container {
    width: 100%;
    max-width: 1300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Tarjeta principal */
.forgot-card {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 450px;
    background: white;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
    overflow: hidden;
    height: clamp(500px, 85vh, 750px);
    align-items: stretch;
}

/* ==================== PANEL IZQUIERDO ==================== */
.forgot-left {
    position: relative;
    /* background: linear-gradient(135deg, #0891b2, #06b6d4); */
      background: linear-gradient(135deg, #0891b2, #06b6d4);
    border-top-left-radius: 28px;
    border-bottom-left-radius: 28px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forgot-left-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(8, 145, 178, 0.3) 0%,
        rgba(15, 23, 42, 0.7) 100%
    );
}

.forgot-left-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 50px;
    max-width: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.forgot-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Imagen SVG */
.forgot-left-image {
    width: 140px;
    height: 140px;
    margin: 0 auto 25px;
}

.forgot-left-image svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
    animation: float 4s ease-in-out infinite;
}

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

.forgot-left-content h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.forgot-left-content p {
    opacity: 0.9;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 380px;
    margin-bottom: 30px;
}

/* Características */
.forgot-features {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item svg {
    width: 18px;
    height: 18px;
}

/* ==================== PANEL DERECHO ==================== */
.forgot-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 50px;
    position: relative;
    overflow-y: auto;
    height: 100%;
    border-top-right-radius: 28px;
    border-bottom-right-radius: 28px;
    background: white;
}

.forgot-right::-webkit-scrollbar {
    width: 6px;
}

.forgot-right::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 6px;
}

.forgot-right::-webkit-scrollbar-track {
    background-color: white;
}

/* ==================== BRAND ==================== */
.forgot-brand-section {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.forgot-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.forgot-brand-logo img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.forgot-brand-logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.forgot-brand-logo h2 span {
    color: #0891b2;
}

.forgot-brand-logo > div > span {
    font-size: 0.6rem;
    color: #64748b;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

/* ==================== FORM HEADER ==================== */
.forgot-form-header {
    margin-bottom: 25px;
}

.forgot-form-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.forgot-form-header p {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ==================== ALERTA DE ÉXITO ==================== */
.forgot-alert-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    border-radius: 12px;
    color: #065f46;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
    animation: slideDown 0.5s ease;
}

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

.forgot-alert-success svg {
    flex-shrink: 0;
    color: #059669;
}

/* ==================== FORM GROUPS ==================== */
.forgot-form-group {
    position: relative;
    margin-bottom: 25px;
}

.forgot-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    color: #111827;
    outline: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    height: 52px;
}

.forgot-input:focus {
    border-color: #0891b2;
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.08);
    background: white;
}

.forgot-input.is-invalid {
    border-color: #ef4444;
}

.forgot-input.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

/* ETIQUETA FLOTANTE */
.forgot-form-group label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0 4px;
    font-size: 0.9rem;
}

.forgot-input:focus + label,
.forgot-input:not(:placeholder-shown) + label {
    top: -8px;
    background: white;
    padding: 0 6px;
    font-size: 0.7rem;
    color: #0891b2;
    font-weight: 600;
}

.forgot-input.is-invalid + label {
    color: #ef4444;
}

/* ERRORES */
.forgot-error {
    display: block;
    margin-top: 6px;
    color: #ef4444;
    font-size: 0.7rem;
    font-weight: 500;
}

/* ==================== BOTONES ==================== */
.forgot-actions {
    margin-top: 5px;
}

.forgot-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.forgot-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(8, 145, 178, 0.4);
}

.forgot-btn:active {
    transform: translateY(0px);
}

.forgot-btn svg {
    width: 20px;
    height: 20px;
}

/* ==================== FOOTER ==================== */
.forgot-footer {
    margin-top: 20px;
    text-align: center;
}

.forgot-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 30px;
}

.forgot-back-link:hover {
    color: #0891b2;
    background: rgba(8, 145, 178, 0.05);
}

.forgot-back-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.forgot-back-link:hover svg {
    transform: translateX(-3px);
}

/* ==================== RESPONSIVE ==================== */
@media(max-width: 900px) {
    .forgot-card {
        grid-template-columns: 1fr;
        max-width: 480px;
        height: auto;
        min-height: auto;
        border-radius: 28px;
    }

    .forgot-left {
        display: none;
    }

    .forgot-right {
        border-radius: 28px;
        padding: 35px 30px;
        height: auto;
        overflow: visible;
    }
}

@media(max-width: 480px) {
    .forgot-right {
        padding: 25px 20px;
    }

    .forgot-form-header h3 {
        font-size: 1.2rem;
    }

    .forgot-brand-logo h2 {
        font-size: 1.3rem;
    }

    .forgot-brand-logo img {
        width: 40px;
        height: 40px;
    }

    .forgot-features {
        flex-direction: column;
        align-items: center;
    }

    .forgot-alert-success {
        font-size: 0.75rem;
        padding: 10px 14px;
    }
}
