@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #10b981;
    --primary-dark: #047857;
    --accent: #0ea5e9;
    --ink: #0f172a;
    --muted: #64748b;
    --line: rgba(15, 23, 42, 0.1);
    --card: rgba(255, 255, 255, 0.94);
    --shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    color: var(--ink);
    background:
        linear-gradient(120deg, rgba(16, 185, 129, 0.11), transparent 36%),
        linear-gradient(300deg, rgba(14, 165, 233, 0.15), transparent 34%),
        #f8fafc;
    overflow-x: hidden;
    overflow-y: auto;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    width: 760px;
    height: 760px;
    right: -300px;
    top: -260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.24), transparent 66%);
    pointer-events: none;
}

.background-image {
    position: fixed;
    inset: 0;
    z-index: -1;
}

.recovery-container {
    width: min(100%, 470px);
    position: relative;
    z-index: 1;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 24px;
    padding: 34px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
}

.recovery-container::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.recovery-logo {
    text-align: center;
    margin-bottom: 24px;
}

.recovery-logo h1 {
    display: inline-block;
    margin: 0;
    padding: 9px 13px 10px;
    border-radius: 7px;
    background: #0f172a;
    color: #fff;
    font-size: 2.15rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
}

.recovery-logo h1 .techno,
.recovery-logo h1 span:first-child {
    color: var(--primary);
}

.recovery-logo h1 .fix {
    color: #fff;
}

.recovery-header {
    text-align: center;
    margin-bottom: 24px;
}

.recovery-header h2 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: clamp(1.55rem, 4vw, 2rem);
    font-weight: 800;
    line-height: 1.18;
}

.recovery-header p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.7;
}

.recovery-header::before {
    content: 'Recuperacion de cuenta';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.11);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.recovery-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.form-group label {
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 700;
}

.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 15px;
    outline: none;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.form-group input[type="email"]::placeholder {
    color: #94a3b8;
}

.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    border-color: rgba(16, 185, 129, 0.78);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
    transform: translateY(-1px);
}

.success-message,
.error-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    padding: 14px 15px;
    border-radius: 15px;
    font-size: 0.92rem;
    line-height: 1.5;
    word-break: normal;
    overflow-wrap: anywhere;
}

.success-message {
    border: 1px solid rgba(16, 185, 129, 0.22);
    background: rgba(236, 253, 245, 0.92);
    color: #065f46;
}

.success-message::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary);
    margin-top: 1px;
}

.error-message {
    border: 1px solid rgba(220, 38, 38, 0.18);
    background: #fef2f2;
    color: #b91c1c;
}

.recovery-btn {
    width: 100%;
    min-height: 54px;
    padding: 12px 18px;
    border: 0;
    border-radius: 15px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    white-space: normal;
    box-shadow: 0 18px 32px rgba(16, 185, 129, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.recovery-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(14, 165, 233, 0.26);
    filter: saturate(1.08);
}

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

.back-to-login {
    text-align: center;
    margin-top: 2px;
}

.back-to-login a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--primary-dark);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
}

.back-to-login a:hover {
    color: var(--accent);
}

.back-to-login i {
    font-size: 0.9rem;
}

@media (min-width: 1100px) {
    body:has(.background-image) .recovery-container {
        margin-left: 360px;
    }

    .background-image::before {
        content: '';
        position: fixed;
        left: clamp(24px, 7vw, 96px);
        top: 50%;
        width: min(36vw, 420px);
        height: 560px;
        transform: translateY(-50%);
        border-radius: 28px;
        background:
            linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.82)),
            radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.28), transparent 34%);
        box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
    }

    .background-image::after {
        content: 'Seguridad para tu cuenta\A\ARecibe un enlace privado, crea una nueva clave y vuelve a entrar a TecnoFix con tranquilidad.\A\A- Enlace temporal\A- Verificacion por correo\A- Proceso confidencial';
        white-space: pre-line;
        position: fixed;
        left: clamp(52px, 9vw, 132px);
        top: 50%;
        width: min(29vw, 320px);
        transform: translateY(-50%);
        color: #e2e8f0;
        font-size: 1rem;
        line-height: 1.8;
        font-weight: 500;
    }
}

@media (min-width: 700px) and (max-width: 1099px) {
    body {
        padding: 32px;
    }

    .recovery-container {
        width: min(100%, 560px);
        padding: 36px;
        max-height: calc(100dvh - 64px);
    }

    .recovery-header h2 {
        font-size: 1.9rem;
    }
}

@media (max-width: 699px) {
    body {
        align-items: flex-start;
        padding: 18px;
    }

    .recovery-container {
        width: 100%;
        max-height: none;
        margin: 0 auto;
    }

    .recovery-header {
        margin-bottom: 20px;
    }

    .recovery-form {
        gap: 16px;
    }
}

@media (max-width: 520px) {
    body {
        padding: 14px;
    }

    .recovery-container {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .recovery-logo h1 {
        font-size: 1.8rem;
    }

    .recovery-header h2 {
        font-size: 1.48rem;
    }

    .recovery-header p,
    .success-message,
    .error-message,
    .back-to-login a {
        font-size: 0.9rem;
    }

    .form-group input[type="email"],
    .form-group input[type="password"],
    .recovery-btn {
        min-height: 50px;
    }

    .recovery-btn {
        padding: 12px 14px;
    }
}

@media (max-width: 360px) {
    .recovery-container {
        padding: 24px 16px;
    }

    .recovery-logo {
        margin-bottom: 18px;
    }

    .recovery-logo h1 {
        font-size: 1.6rem;
    }

    .recovery-header::before {
        font-size: 0.68rem;
        letter-spacing: 0.05em;
    }
}
