@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    background-color: #c9d6ff;
    background: linear-gradient(to right, #e2e2e2, #c9d6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.content-container {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
    display: flex;
    height: 100vh;
    width: 100%;
}

/* panel izquierdo */
.illustration-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #002749, #001A33);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    width: 50%;
    height: 100%;
    -webkit-clip-path: polygon(0% 0, 80% 0, 100% 50%, 80% 100%, 0% 100%);
    clip-path: polygon(0% 0, 80% 0, 100% 50%, 80% 100%, 0% 100%);
}

.illustration-panel img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    display: block;
}

/* panel derecho */
.form-side {
    flex: 1;
    background-color: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow-y: auto;
}

.recovery-icon {
    width: 70px;
    height: 70px;
    background-color: #F28C28;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 10px auto;
}

.recovery-icon svg {
    width: 35px;
    height: 35px;
}

.titulo-recuperar {
    color: #002749;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.subtitulo-recuperar {
    color: #777;
    font-size: 14px;
    line-height: 1.7;
    max-width: 360px;
    margin: 0 auto;
}

/* formulario*/
.formulario {
    margin-top: 32px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-container {
    width: 100%;
    max-width: 340px;
}

.input-group {
    width: 100%;
    margin-bottom: 18px;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-input {
    background-color: #eee;
    border: 2px solid transparent;
    padding: 12px 15px;
    font-size: 13px;
    border-radius: 8px;
    width: 100%;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-input:focus {
    border-color: #F28C28;
    background-color: #fff;
}

.form-input.input-error {
    border-color: #e74c3c;
    background-color: #fef5f5;
}

.error-message {
    font-size: 11px;
    color: #e74c3c;
    margin-top: 6px;
    display: none;
    text-align: left;
}

.error-message.visible {
    display: block;
}

.btn-submit {
    background-color: #F28C28;
    color: #fff;
    font-size: 12px;
    padding: 13px 45px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 24px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s ease, transform 0.15s ease, opacity 0.3s;
    width: 100%;
    max-width: 340px;
}

.btn-submit:hover {
    background-color: #e07b1e;
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-submit .spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-back {
    background-color: transparent;
    color: #002749;
    border: 1px solid #002749;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-back:hover {
    background-color: #f0f0f0;
}

.btn-back svg {
    width: 14px;
    height: 14px;
}

.recovery-footer {
    margin-top: 28px;
    font-size: 13px;
    color: #777;
}

.recovery-footer p {
    margin-bottom: 5px;
}

.recovery-footer a {
    color: #F28C28;
    text-decoration: none;
    font-weight: 600;
}

.recovery-footer a:hover {
    text-decoration: underline;
}

/* responsive */
@media (max-width: 768px) {

    html,
    body {
        overflow: auto;
    }

    .content-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    /* Ocultar el panel izquierdo */
    .illustration-panel {
        display: none;
    }

    .form-side {
        width: 100%;
        padding: 40px 24px;
        min-height: 100vh;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .titulo-recuperar {
        font-size: 22px;
    }

    .subtitulo-recuperar {
        font-size: 13px;
    }

    .form-side {
        padding: 32px 18px;
    }

    .btn-submit {
        padding: 13px 30px;
    }
}