/* ===============================================
   RECOVER PASSWORD PAGE
   Garces Fruit Design System
   =============================================== */

.recover-page {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* === BANNER LATERAL === */
.recover-banner {
    position: relative;
    width: 500px;
    min-width: 500px;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(180deg, #5a1240 0%, #7B1A4A 30%, #8B1D5B 60%, #9B2D6B 100%);
}

/* Contenedor del fondo */
.banner-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* Forma de onda principal */
.wave-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Círculo decorativo grande */
.circle-large {
    position: absolute;
    bottom: -50px;
    right: -100px;
    width: 300px;
    height: 300px;
    z-index: 2;
    opacity: 0.7;
}

/* Frutas SVG */
.fruit-svg {
    position: absolute;
    z-index: 3;
}

.fruit-1 {
    width: 90px;
    height: 110px;
    top: 38%;
    right: 18%;
    transform: rotate(-15deg);
}

.fruit-2 {
    width: 130px;
    height: 150px;
    bottom: 18%;
    left: 30%;
    transform: rotate(8deg);
}

/* Texto vertical */
.banner-text {
    position: absolute;
    left: 60px;
    bottom: 100px;
    z-index: 10;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.banner-text span {
    font-family: 'Inter', sans-serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 30px;
    letter-spacing: -0.6px;
    color: #ffffff;
    white-space: nowrap;
}

/* === CONTENIDO PRINCIPAL === */
.recover-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 127px 200px;
    background-color: #ffffff;
    position: relative;
}

/* Botón volver */
.back-container {
    width: 100%;
    max-width: 800px;
    margin-bottom: 24px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 99px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 12px;
    color: #2c2d30;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.back-button:hover {
    background-color: #f5f5f5;
}

.back-button .material-icons {
    font-size: 14px;
}

/* Contenedor del formulario */
.recover-form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    width: 100%;
    max-width: 490px;
}

/* Logo */
.logo-container {
    width: 160px;
    height: 48px;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Header del formulario */
.form-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    width: 100%;
}

.form-header h1 {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: -0.24px;
    color: #181c32;
    margin: 0;
}

.form-header p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    color: #676a72;
    margin: 0;
}

/* Formulario */
.recover-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Grupo de formulario */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.form-group label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 12px;
    color: #2c2d30;
}

/* Input */
.form-input {
    width: 100%;
    height: 34px;
    padding: 11px 12px;
    background-color: #ffffff;
    border: 1px solid #dcddde;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 14px;
    color: #2c2d30;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder {
    color: #8e9198;
}

.form-input:focus {
    outline: none;
    border-color: #117050;
    box-shadow: 0 0 0 3px rgba(17, 112, 80, 0.1);
}

.form-input.input-error {
    border-color: #ED143B;
}

.form-input.input-error:focus {
    box-shadow: 0 0 0 3px rgba(237, 20, 59, 0.1);
}

/* Mensaje de error */
.error-message {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
    color: #ED143B;
    margin-top: 4px;
}

/* Botón de envío */
.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    padding: 13px 20px;
    background-color: #117050;
    border: none;
    border-radius: 99px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 14px;
    letter-spacing: -0.13px;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.submit-button:hover:not(:disabled) {
    background-color: #0d5a40;
}

.submit-button:active:not(:disabled) {
    transform: scale(0.98);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Spinner del botón */
.button-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mensaje de éxito */
.success-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 16px;
    background-color: #e8f5e9;
    border: 1px solid #4caf50;
    border-radius: 8px;
    margin-top: 16px;
}

.success-message .material-icons {
    font-size: 24px;
    color: #4caf50;
    flex-shrink: 0;
}

.success-message strong {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2c2d30;
    margin-bottom: 4px;
}

.success-message p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #676a72;
    margin: 0;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .recover-content {
        padding: 60px 80px 150px;
    }
}

@media (max-width: 992px) {
    .recover-banner {
        width: 350px;
        min-width: 350px;
    }
    
    .banner-text {
        left: 30px;
        bottom: 60px;
    }
    
    .banner-text span {
        font-size: 24px;
    }
    
    .fruit-1 {
        width: 70px;
        height: 85px;
    }
    
    .fruit-2 {
        width: 100px;
        height: 115px;
    }
    
    .recover-content {
        padding: 60px 50px 100px;
    }
}

@media (max-width: 768px) {
    .recover-page {
        flex-direction: column;
    }
    
    .recover-banner {
        width: 100%;
        min-width: 100%;
        min-height: 180px;
        height: 180px;
    }
    
    .banner-text {
        writing-mode: horizontal-tb;
        transform: none;
        left: 50%;
        bottom: auto;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    
    .banner-bg,
    .wave-shape,
    .circle-large {
        display: none;
    }
    
    .fruit-svg {
        display: none;
    }
    
    .recover-content {
        padding: 40px 24px 60px;
    }
    
    .back-container {
        margin-bottom: 16px;
    }
    
    .recover-form-container {
        gap: 32px;
    }
    
    .form-header h1 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .recover-content {
        padding: 24px 16px 40px;
    }
    
    .logo-container {
        width: 140px;
        height: 42px;
    }
}
