* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "Gagalin";
    src: url("../fonts/Gagalin-Regular.otf") format("opentype");
}

:root {
    --navy: #12352d;
    --blue: #286347;
    --blue-dark: #1b5038;
    --cyan: #7c7f85;
    --green: #16a34a;
    --red: #dc2626;
    --bg: #f4f6f2;
    --white: #ffffff;
    --line: #dce5dc;
    --text: #0f172a;
    --muted: #64748b;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    text-decoration: none;
}

button,
input {
    font-family: inherit;
}

.auth-topbar {
    min-height: 76px;
    padding: 12px 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.topbar-logo {
    width: 52px;
    height: 52px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: white;
}

.topbar-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.topbar-brand strong {
    display: block;
    font-size: 20px;
    line-height: 1;
}

.topbar-brand span {
    display: block;
    margin-top: 4px;
    color: var(--cyan);
    font-family: "Gagalin", Arial, sans-serif;
    font-size: 15px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-actions span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.topbar-actions a {
    min-height: 42px;
    padding: 0 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 11px;
    background: var(--blue);
    color: white;
    font-size: 11px;
    font-weight: 900;
}

.recover-page {
    padding: 30px 4vw 50px;
}

.recover-layout {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}

.recover-info,
.recover-form-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.recover-info {
    padding: 30px;
    background:
        radial-gradient(circle at top right, rgba(49, 196, 255, 0.22), transparent 36%),
        linear-gradient(145deg, #21483b, #12352d);
    color: white;
}

.eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.eyebrow.light {
    color: var(--cyan);
}

.recover-info h1 {
    margin-bottom: 15px;
    font-size: 37px;
    line-height: 1.08;
}

.lead {
    margin-bottom: 23px;
    color: #dcebe0;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 700;
}

.steps-list {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.steps-list article {
    padding: 15px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.07);
}

.steps-list article > span {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    background: var(--cyan);
    color: var(--navy);
    font-size: 10px;
    font-weight: 900;
}

.steps-list h3 {
    margin-bottom: 4px;
    font-size: 14px;
}

.steps-list p {
    color: #dcebe0;
    font-size: 11px;
    line-height: 1.5;
    font-weight: 700;
}

.security-card {
    padding: 16px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.10);
}

.security-card > span {
    display: block;
    margin-bottom: 5px;
    color: var(--cyan);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.security-card h3 {
    margin-bottom: 6px;
    font-size: 15px;
}

.security-card p {
    color: #dcebe0;
    font-size: 10px;
    line-height: 1.55;
    font-weight: 700;
}

.recover-form-card {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.form-heading {
    margin-bottom: 22px;
}

.form-heading h2 {
    margin-bottom: 8px;
    font-size: clamp(34px, 4vw, 46px);
    line-height: 1;
}

.form-heading p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 700;
}

.alert {
    margin-bottom: 18px;
    padding: 14px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border-radius: 13px;
}

.alert.success {
    border: 1px solid #86efac;
    background: #dcfce7;
    color: #166534;
}

.alert.error {
    border: 1px solid #fecaca;
    background: #fee2e2;
    color: #991b1b;
}

.alert-icon {
    width: 34px;
    height: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background: currentColor;
    color: white;
    font-size: 15px;
    font-weight: 900;
}

.alert p {
    font-size: 11px;
    line-height: 1.5;
    font-weight: 900;
}

.form-section {
    margin-bottom: 16px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fbfdff;
}

.section-title {
    margin-bottom: 17px;
    display: flex;
    gap: 11px;
    align-items: flex-start;
}

.section-title > span {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 11px;
    background: var(--blue);
    color: white;
    font-size: 10px;
    font-weight: 900;
}

.section-title h3 {
    margin-bottom: 4px;
    font-size: 19px;
}

.section-title p {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 11px;
    font-weight: 900;
}

.form-group input {
    width: 100%;
    height: 50px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
    background: white;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    transition: 0.2s ease;
}

.form-group input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.form-group small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.45;
    font-weight: 700;
}

.submit-button,
.secondary-button {
    width: 100%;
    min-height: 52px;
    border-radius: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 12px;
    font-weight: 900;
}

.submit-button {
    border: none;
    background: var(--blue);
    color: white;
    cursor: pointer;
    transition: 0.2s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    background: var(--blue-dark);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.24);
}

.secondary-button {
    margin-top: 10px;
    background: #f1f5f9;
    color: #334155;
}

.secondary-button:hover {
    background: #e2e8f0;
}

.help-card {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #bedac4;
    border-radius: 15px;
    background: #edf5ed;
}

.help-card > span {
    display: block;
    margin-bottom: 6px;
    color: #1a543a;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.help-card p {
    color: #174832;
    font-size: 10px;
    line-height: 1.5;
    font-weight: 700;
}

@media (max-width: 820px) {
    .auth-topbar {
        padding: 12px 14px;
    }

    .topbar-actions span {
        display: none;
    }

    .recover-page {
        padding: 20px 14px 40px;
    }

    .recover-layout {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .recover-info {
        display: none;
    }

    .recover-form-card {
        padding: 24px;
    }
}

@media (max-width: 560px) {
    .topbar-actions a {
        padding: 0 11px;
        font-size: 10px;
    }

    .recover-form-card {
        padding: 19px;
        border-radius: 18px;
    }

    .form-section {
        padding: 16px;
    }
}