/* ============================================
   RECUPERAR CONTRASEÑA - ON THE RUSH
   Diseño moderno split-screen con colores corporativos
   ============================================ */

/* Variables de colores corporativos */
:root {
    --primary-blue: #0f172a;
    --light-blue: #1e3a8a;
    --accent-blue: #3b82f6;
    --primary-green: #6bc044;
    --dark-green: #5aa838;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Contenedor principal */
.recuperar-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    background: var(--white);
}

/* ============================================
   PANEL IZQUIERDO - BRANDING
   ============================================ */
.recuperar-brand-panel {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

/* Patrón de fondo decorativo */
.recuperar-brand-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(107, 192, 68, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.brand-content {
    position: relative;
    z-index: 1;
    max-width: 480px;
    text-align: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.brand-logo {
    margin-bottom: 48px;
    animation: fadeInUp 0.6s ease-out;
}

.brand-logo img {
    max-width: 360px;
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

.brand-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.brand-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: auto;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

/* Footer del branding */
.brand-footer {
    margin-top: 80px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.brand-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.brand-link {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.brand-link:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* ============================================
   PANEL DERECHO - FORMULARIO
   ============================================ */
.recuperar-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: var(--gray-50);
}

.form-container {
    width: 100%;
    max-width: 460px;
    animation: fadeInRight 0.6s ease-out;
}

.form-header {
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.form-header p {
    font-size: 16px;
    color: var(--gray-600);
}

/* ============================================
   ALERTAS
   ============================================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
    animation: slideDown 0.3s ease-out;
}

.alert-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

/* ============================================
   FORMULARIO
   ============================================ */
.recuperar-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

.label-icon {
    color: var(--gray-500);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--gray-900);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    transition: all 0.2s ease;
    outline: none;
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-input:hover {
    border-color: var(--gray-300);
}

.form-input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(107, 192, 68, 0.1);
}

.form-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-500);
    margin-top: -4px;
}

.form-hint svg {
    flex-shrink: 0;
}

/* Botón de recuperar */
.btn-recuperar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(107, 192, 68, 0.2);
    margin-top: 8px;
}

.btn-recuperar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 192, 68, 0.3);
}

.btn-recuperar:active {
    transform: translateY(0);
}

.btn-recuperar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-recuperar:hover .btn-icon {
    transform: translateX(4px);
}

/* Footer del formulario */
.form-footer {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.form-footer p {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 12px;
}

.login-link {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: var(--light-blue);
    text-decoration: none;
    transition: all 0.2s ease;
}

.login-link:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 1024px) {
    .recuperar-wrapper {
        grid-template-columns: 1fr;
    }

    .recuperar-brand-panel {
        display: none;
    }

    .recuperar-form-panel {
        padding: 40px 24px;
    }

    .form-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .form-header h2 {
        font-size: 24px;
    }

    .btn-recuperar {
        font-size: 15px;
        padding: 14px 20px;
    }
}