* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 30%),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.12), transparent 28%),
        #f8fafc;
    color: #0f172a;
}

a,
button,
input {
    font: inherit;
}

.recover-page {
    width: 100%;
    min-height: 100vh;
    padding: 34px 18px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recover-card {
    width: 100%;
    max-width: 520px;
    padding: 32px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.11);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.recover-card::before {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    top: -95px;
    right: -95px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(14, 165, 233, 0.05));
    pointer-events: none;
}

.recover-back-link {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition:
        transform 0.16s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.recover-back-link:hover {
    background: #eff6ff;
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
}

.recover-header {
    position: relative;
    z-index: 2;
    margin-top: 28px;
    margin-bottom: 24px;
}

.recover-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 12px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.recover-header h1 {
    margin: 0;
    font-size: clamp(34px, 6vw, 46px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.06em;
    color: #0f172a;
}

.recover-header p {
    margin: 13px 0 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 500;
}

.recover-alert {
    position: relative;
    z-index: 2;
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.recover-alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.recover-alert-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
}

.recover-form {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 17px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 850;
    color: #334155;
}

.form-group input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border-radius: 15px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form-group input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.form-group input:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.btn-recover {
    width: 100%;
    min-height: 52px;
    border: none;
    border-radius: 16px;
    background: #2563eb;
    color: #ffffff;
    font-size: 15px;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.26);
    transition:
        transform 0.16s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.btn-recover:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.32);
}

.btn-recover:active {
    transform: scale(0.98);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .recover-page {
        align-items: flex-start;
        padding: 24px 14px 44px;
    }

    .recover-card {
        padding: 26px;
        border-radius: 24px;
    }
}

@media (max-width: 480px) {
    .recover-page {
        padding: 18px 12px 36px;
    }

    .recover-card {
        padding: 22px;
        border-radius: 22px;
    }

    .recover-header h1 {
        font-size: 33px;
    }

    .recover-header p {
        font-size: 14px;
    }

    .form-group input {
        height: 48px;
    }

    .btn-recover {
        min-height: 50px;
    }
}