/* =========================================================
   RECUPERAR CONTRASEÑA
   PORTAL CLIENTE - CUPOTECH SOLUTIONS
========================================================= */

:root {
    --blue-dark: #06386c;
    --blue: #0877b8;
    --cyan: #00a5d9;

    --orange: #f28c28;

    --text: #173e5c;
    --muted: #718899;

    --background: #f2f8fc;
    --white: #ffffff;

    --border: #d7e5ef;
    --border-light: #e8eff4;

    --success: #16805e;
    --success-bg: #e7f7f0;

    --danger: #bd4646;
    --danger-bg: #fff0f0;

    --shadow:
            0 24px 65px rgba(18, 72, 108, 0.14);
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    font-family: "Inter", sans-serif;

    color: var(--text);

    background: var(--background);
}

button,
input,
a {
    font: inherit;
}


/* =========================================================
   HEADER
========================================================= */

.recovery-header {
    min-height: 78px;

    display: flex;
    align-items: center;

    position: relative;
    z-index: 20;

    background: rgba(255, 255, 255, 0.97);

    border-top: 3px solid var(--cyan);
    border-bottom: 1px solid var(--border);
}

.recovery-header-inner {
    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


/* =========================================================
   BRAND
========================================================= */

.recovery-brand {
    display: flex;
    align-items: center;

    gap: 11px;

    color: var(--blue-dark);

    text-decoration: none;
}

.recovery-brand img {
    width: 46px;
    height: 46px;

    object-fit: contain;
}

.recovery-brand > div {
    display: flex;
    flex-direction: column;
}

.recovery-brand strong {
    font-size: 16px;
    font-weight: 800;
}

.recovery-brand span {
    margin-top: 3px;

    color: #748c9e;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* =========================================================
   HEADER ACTIONS
========================================================= */

.header-actions {
    display: flex;
    align-items: center;

    gap: 9px;
}

.header-login-link,
.header-web-link {
    min-height: 41px;

    padding: 0 15px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border-radius: 10px;

    text-decoration: none;

    font-size: 12px;
    font-weight: 700;

    transition:
            color 0.2s ease,
            background 0.2s ease,
            border-color 0.2s ease,
            transform 0.2s ease;
}

.header-login-link {
    color: #557185;

    background: #f8fafc;

    border: 1px solid #dde8ef;
}

.header-web-link {
    color: #0878ad;

    background: #edf8fd;

    border: 1px solid #cae5f2;
}

.header-login-link:hover,
.header-web-link:hover {
    transform: translateY(-1px);
}

.header-login-link:hover {
    color: var(--blue);

    background: #edf7fb;
}

.header-web-link:hover {
    color: white;

    background: var(--blue);

    border-color: var(--blue);
}


/* =========================================================
   MAIN
========================================================= */

.recovery-main {
    position: relative;

    flex: 1;

    min-height: 690px;

    padding: 58px 20px 50px;

    overflow: hidden;

    background:
            linear-gradient(
                    180deg,
                    #eef8fd 0%,
                    #f8fbfd 48%,
                    #f2f8fc 100%
            );
}


/* =========================================================
   MARCA DE AGUA
========================================================= */

.background-logo {
    position: absolute;

    inset: 0;

    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none;
}

.background-logo img {
    width: min(570px, 58vw);

    opacity: 0.04;

    transform:
            translateY(40px)
            rotate(-7deg);

    filter: grayscale(15%);
}


/* =========================================================
   DECORACIÓN
========================================================= */

.background-orb {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}

.background-orb-left {
    width: 480px;
    height: 480px;

    left: -250px;
    top: 80px;

    background:
            radial-gradient(
                    circle,
                    rgba(0, 165, 217, 0.10),
                    rgba(0, 165, 217, 0) 70%
            );
}

.background-orb-right {
    width: 480px;
    height: 480px;

    right: -250px;
    bottom: -120px;

    background:
            radial-gradient(
                    circle,
                    rgba(242, 140, 40, 0.07),
                    rgba(242, 140, 40, 0) 70%
            );
}


/* =========================================================
   CONTENT
========================================================= */

.recovery-content {
    width: min(760px, 100%);

    margin: 0 auto;

    position: relative;
    z-index: 5;
}


/* =========================================================
   INTRO
========================================================= */

.recovery-intro {
    max-width: 680px;

    margin: 0 auto 28px;

    text-align: center;
}

.recovery-intro h1 {
    margin: 0;

    color: var(--blue-dark);

    font-size: clamp(30px, 4vw, 39px);
    font-weight: 800;

    line-height: 1.16;
}

.recovery-intro h1 span {
    color: #0798cf;
}

.recovery-intro p {
    max-width: 590px;

    margin: 12px auto 0;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.65;
}


/* =========================================================
   CARD
========================================================= */

.recovery-card {
    width: min(500px, 100%);

    margin: 0 auto;

    padding: 36px 40px 32px;

    position: relative;

    overflow: hidden;

    border-radius: 22px;

    background: rgba(255, 255, 255, 0.97);

    border: 1px solid var(--border);

    box-shadow: var(--shadow);

    backdrop-filter: blur(10px);
}

.recovery-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 45px;
    right: 45px;

    height: 4px;

    border-radius: 0 0 10px 10px;

    background:
            linear-gradient(
                    90deg,
                    var(--orange),
                    var(--cyan)
            );
}


/* =========================================================
   ICON
========================================================= */

.recovery-icon {
    width: 54px;
    height: 54px;

    margin: 0 auto 15px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    color: #087fb8;

    background: #e8f7fd;

    font-size: 20px;
}


/* =========================================================
   HEADING
========================================================= */

.recovery-card-heading {
    text-align: center;
}

.recovery-card-heading > span {
    display: block;

    margin-bottom: 6px;

    color: #0782bb;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.recovery-card-heading h2 {
    margin: 0;

    color: var(--blue-dark);

    font-size: 25px;
    font-weight: 800;
}

.recovery-card-heading p {
    max-width: 390px;

    margin: 9px auto 0;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.6;
}


/* =========================================================
   ALERTAS
========================================================= */

.recovery-alert {
    margin-top: 20px;

    padding: 13px;

    display: flex;
    align-items: flex-start;

    gap: 10px;

    border-radius: 10px;

    font-size: 12px;

    line-height: 1.5;
}

.recovery-alert > i {
    margin-top: 2px;
}

.recovery-alert > div {
    display: flex;
    flex-direction: column;
}

.recovery-alert strong {
    margin-bottom: 2px;
}

.recovery-alert-success {
    color: var(--success);

    background: var(--success-bg);

    border: 1px solid #ccecdf;
}

.recovery-alert-error {
    color: var(--danger);

    background: var(--danger-bg);

    border: 1px solid #f0cece;
}


/* =========================================================
   FORM
========================================================= */

.recovery-form {
    margin-top: 25px;
}

.form-field label {
    display: block;

    margin-bottom: 8px;

    color: #426178;

    font-size: 12px;
    font-weight: 700;
}

.form-control {
    position: relative;

    min-height: 50px;

    display: flex;
    align-items: center;

    overflow: hidden;

    border-radius: 10px;

    background: #fbfdff;

    border: 1px solid #d4e3ed;

    transition:
            border-color 0.2s ease,
            background 0.2s ease,
            box-shadow 0.2s ease;
}

.form-control:focus-within {
    background: white;

    border-color: #53b7df;

    box-shadow:
            0 0 0 3px rgba(0, 163, 215, 0.08);
}

.form-control > i {
    position: absolute;

    left: 15px;

    color: #859aa9;

    font-size: 13px;
}

.form-control input {
    width: 100%;
    height: 50px;

    padding: 0 14px 0 42px;

    color: #294f69;

    background: transparent;

    border: 0;
    outline: 0;

    font-size: 13px;
}

.form-control input::placeholder {
    color: #a5b4bf;
}

.field-help {
    display: block;

    margin-top: 7px;

    color: #879aa8;

    font-size: 11px;

    line-height: 1.5;
}


/* =========================================================
   VALIDATION
========================================================= */

.validation-message {
    min-height: 21px;

    margin-top: 7px;

    color: var(--danger);

    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   BUTTON
========================================================= */

.recovery-button {
    width: 100%;

    min-height: 50px;

    margin-top: 3px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    color: white;

    background:
            linear-gradient(
                    135deg,
                    #0867a7,
                    #00a3d8
            );

    border: 0;
    border-radius: 10px;

    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
            0 10px 22px rgba(0, 133, 189, 0.20);

    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease;
}

.recovery-button:hover {
    transform: translateY(-1px);

    box-shadow:
            0 14px 28px rgba(0, 133, 189, 0.27);
}


/* =========================================================
   SECURITY NOTE
========================================================= */

.security-note {
    margin-top: 22px;

    padding: 14px;

    display: flex;
    align-items: flex-start;

    gap: 11px;

    color: #617b8d;

    background: #f5f9fc;

    border: 1px solid #e0eaf0;
    border-radius: 11px;
}

.security-note > i {
    margin-top: 2px;

    color: #16805e;

    font-size: 14px;
}

.security-note > div {
    display: flex;
    flex-direction: column;
}

.security-note strong {
    color: #405f75;

    font-size: 11px;
}

.security-note span {
    margin-top: 3px;

    font-size: 10px;

    line-height: 1.5;
}


/* =========================================================
   LOGIN RETURN
========================================================= */

.login-return {
    margin-top: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    font-size: 11px;
}

.login-return span {
    color: var(--muted);
}

.login-return a {
    color: var(--blue);

    font-weight: 800;

    text-decoration: none;
}

.login-return a:hover {
    text-decoration: underline;
}


/* =========================================================
   FOOTER
========================================================= */

.recovery-footer {
    min-height: 60px;

    display: flex;
    align-items: center;

    position: relative;
    z-index: 20;

    background: white;

    border-top: 1px solid var(--border);
}

.recovery-footer-inner {
    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    color: #8194a2;

    font-size: 11px;
}

.recovery-footer-inner > div {
    display: flex;
    align-items: center;

    gap: 8px;
}

.recovery-footer img {
    width: 27px;
    height: 27px;

    object-fit: contain;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 540px) {

    .recovery-header-inner {
        width: calc(100% - 24px);
    }

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

    .recovery-brand strong {
        font-size: 14px;
    }

    .recovery-brand span {
        font-size: 9px;
    }

    .header-login-link span,
    .header-web-link span {
        display: none;
    }

    .header-login-link,
    .header-web-link {
        width: 40px;

        padding: 0;
    }

    .recovery-main {
        min-height: auto;

        padding: 36px 12px;
    }

    .recovery-intro h1 {
        font-size: 28px;
    }

    .recovery-intro p {
        font-size: 12px;
    }

    .recovery-card {
        padding: 30px 22px;
    }

    .recovery-card-heading h2 {
        font-size: 22px;
    }

    .login-return {
        flex-direction: column;
    }

    .recovery-footer-inner {
        width: calc(100% - 24px);

        padding: 14px 0;

        flex-direction: column;

        justify-content: center;

        gap: 8px;
    }

    .background-logo img {
        width: 90vw;

        opacity: 0.03;
    }
}