:root {
    --background: #05090e;
    --panel: rgba(13, 26, 36, 0.94);
    --panel-light: rgba(17, 35, 45, 0.94);
    --border: rgba(110, 143, 161, 0.24);
    --border-strong: rgba(65, 230, 170, 0.32);

    --green: #41e6aa;
    --green-hover: #66f2be;
    --green-soft: rgba(65, 230, 170, 0.10);

    --blue: #62b8ff;
    --blue-soft: rgba(98, 184, 255, 0.10);

    --red: #ff5757;
    --red-soft: rgba(255, 87, 87, 0.10);

    --text: #f2f6f8;
    --text-soft: #9fb4c2;
    --text-muted: #6f8494;

    --shadow: rgba(0, 0, 0, 0.55);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

.reset-page {
    position: relative;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 32px;

    background:
        linear-gradient(
            90deg,
            rgba(5, 9, 14, 0.94) 0%,
            rgba(5, 9, 14, 0.74) 45%,
            rgba(5, 9, 14, 0.94) 100%
        ),
        linear-gradient(
            180deg,
            rgba(5, 9, 14, 0.35) 0%,
            rgba(5, 9, 14, 0.86) 100%
        ),
        url("/images/MainMenu_Star.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.reset-overlay {
    position: fixed;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 65% 20%,
            rgba(65, 230, 170, 0.14),
            transparent 34%
        ),
        radial-gradient(
            circle at 18% 84%,
            rgba(98, 184, 255, 0.12),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            transparent 0%,
            rgba(5, 9, 14, 0.7) 100%
        );
}

.reset-card {
    position: relative;
    z-index: 1;

    width: min(100%, 540px);
    padding: 34px;

    background: var(--panel);

    border: 1px solid var(--border);
    border-radius: 16px;

    box-shadow: 0 26px 80px var(--shadow);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.back-link {
    display: inline-flex;
    align-items: center;

    margin-bottom: 28px;

    color: var(--text-soft);

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition: color 0.15s ease;
}

.back-link:hover {
    color: var(--green);
}

.reset-label {
    display: inline-flex;
    align-items: center;

    margin-bottom: 12px;
    padding: 6px 10px;

    color: var(--green);

    background: var(--green-soft);

    border: 1px solid rgba(65, 230, 170, 0.22);
    border-radius: 7px;

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.6px;
}

.reset-header h1 {
    margin: 0 0 14px;

    color: var(--text);

    font-size: clamp(38px, 7vw, 56px);
    line-height: 0.95;
    letter-spacing: 0;
}

.reset-header p {
    margin: 0 0 20px;

    color: var(--text-soft);

    font-size: 15px;
    line-height: 1.7;
}

.reset-header strong {
    color: var(--green);
}

.reset-note {
    margin: 0 0 24px;
    padding: 13px 14px;

    color: var(--text-soft);

    background: var(--blue-soft);

    border: 1px solid rgba(98, 184, 255, 0.18);
    border-radius: 10px;

    font-size: 13px;
    line-height: 1.55;
}

.reset-note strong {
    color: var(--text);
}

.message {
    margin-bottom: 20px;
    padding: 14px 15px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
}

.message.success {
    color: var(--green);

    background: var(--green-soft);

    border: 1px solid rgba(65, 230, 170, 0.22);
}

.message.error {
    color: var(--red);

    background: var(--red-soft);

    border: 1px solid rgba(255, 87, 87, 0.22);
}

.reset-form {
    display: grid;
    gap: 12px;
}

.reset-form label {
    color: var(--text);

    font-size: 14px;
    font-weight: 800;
}

.reset-form input {
    width: 100%;

    padding: 15px;

    color: var(--text);

    background: rgba(5, 9, 14, 0.78);

    border: 1px solid rgba(110, 143, 161, 0.32);
    border-radius: 10px;

    outline: none;

    font-size: 15px;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.reset-form input::placeholder {
    color: var(--text-muted);
}

.reset-form input:focus {
    border-color: var(--green);

    background: rgba(5, 9, 14, 0.92);

    box-shadow: 0 0 0 3px rgba(65, 230, 170, 0.12);
}

.reset-form button {
    margin-top: 8px;

    padding: 15px 18px;

    color: #061009;

    background: var(--green);

    border: 0;
    border-radius: 10px;

    font-size: 15px;
    font-weight: 900;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.reset-form button:hover {
    transform: translateY(-1px);

    background: var(--green-hover);

    box-shadow: 0 12px 32px rgba(65, 230, 170, 0.18);
}

.reset-form button:active {
    transform: translateY(0);
}

.reset-help {
    margin: 18px 0 0;

    color: var(--text-muted);

    font-size: 13px;
    line-height: 1.55;
}

.reset-help a {
    color: var(--green);

    text-decoration: none;
    font-weight: 700;
}

.reset-help a:hover {
    color: var(--green-hover);
}

.debug-token {
    margin-top: 22px;
    padding: 14px;

    color: var(--text-soft);

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;

    font-size: 13px;

    word-break: break-word;
}

.debug-token strong {
    display: block;

    margin-bottom: 6px;

    color: var(--text);
}

.debug-token a {
    color: var(--green);
}

@media (max-width: 560px) {
    .reset-page {
        align-items: flex-start;

        min-height: 100vh;

        padding: 18px;
    }

    .reset-card {
        width: 100%;

        margin-top: 28px;
        padding: 24px;

        border-radius: 14px;
    }

    .reset-header h1 {
        font-size: 38px;
    }

    .reset-header p,
    .reset-note,
    .message,
    .reset-form input,
    .reset-form button {
        font-size: 14px;
    }
}