@import url('./global/reset.css');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500;600&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --reset-bg: #0b1118;
    --reset-bg-strong: #111827;
    --reset-panel: rgba(15, 23, 42, 0.9);
    --reset-panel-strong: rgba(15, 22, 36, 0.96);
    --reset-border: rgba(148, 163, 184, 0.18);
    --reset-border-strong: rgba(37, 99, 235, 0.32);
    --reset-text: #e2e8f0;
    --reset-muted: #94a3b8;
    --reset-primary: #2563eb;
    --reset-primary-strong: #1d4ed8;
    --reset-primary-soft: rgba(37, 99, 235, 0.16);
    --reset-secondary: #22c55e;
    --reset-success: #22c55e;
    --reset-warning: #fbbf24;
    --reset-danger: #fb7185;
    --reset-shadow: 0 28px 90px rgba(2, 6, 23, 0.42);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    color: var(--reset-text);
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at 12% 12%, rgba(37, 99, 235, 0.24), transparent 24%),
        radial-gradient(circle at 88% 18%, rgba(15, 118, 110, 0.16), transparent 18%),
        linear-gradient(145deg, #020617 0%, #08101f 45%, #020617 100%);
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 20rem;
    height: 20rem;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(85px);
    opacity: 0.24;
    z-index: 0;
}

body::before {
    top: -7rem;
    left: -6rem;
    background: rgba(37, 99, 235, 0.78);
}

body::after {
    right: -7rem;
    bottom: -8rem;
    background: rgba(15, 118, 110, 0.5);
}

.reset-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
}

.reset-shell {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    gap: 24px;
    align-items: stretch;
}

.reset-panel {
    position: relative;
    border: 1px solid var(--reset-border);
    border-radius: 30px;
    background: linear-gradient(180deg, var(--reset-panel) 0%, var(--reset-panel-strong) 100%);
    box-shadow: var(--reset-shadow);
    backdrop-filter: blur(18px);
}

.reset-panel--intro,
.reset-panel--form {
    padding: 34px;
}

.reset-panel--intro {
    display: flex;
    flex-direction: column;
    gap: 22px;
    overflow: hidden;
}

.reset-panel--intro::after {
    content: "";
    position: absolute;
    right: -4rem;
    bottom: -5rem;
    width: 16rem;
    height: 16rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.22), transparent 68%);
    pointer-events: none;
}

.reset-panel--form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.reset-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: var(--reset-text);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.reset-brand-mark {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.34), rgba(15, 118, 110, 0.24));
}

.reset-brand-mark::before {
    content: "C";
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
}

.reset-kicker,
.reset-card-kicker {
    margin: 0;
    color: #93c5fd;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.reset-title {
    margin: 10px 0 12px;
    color: #ffffff;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.reset-title--intro {
    margin-top: 0;
    font-size: clamp(2.35rem, 4vw, 3.5rem);
}

.reset-copy {
    margin: 0;
    color: var(--reset-muted);
    font-size: 15px;
    line-height: 1.7;
}

.reset-copy--intro {
    max-width: 42ch;
}

.reset-feature-grid {
    display: grid;
    gap: 14px;
}

.reset-feature {
    position: relative;
    padding: 18px 18px 18px 46px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
}

.reset-feature::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 18px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--reset-primary), var(--reset-secondary));
    box-shadow: 0 0 18px rgba(37, 99, 235, 0.38);
}

.reset-feature strong {
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 14px;
}

.reset-feature span {
    display: block;
    color: var(--reset-muted);
    font-size: 13px;
    line-height: 1.6;
}

.reset-meta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.reset-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #dbeafe;
    font-size: 12px;
}

.reset-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--reset-success);
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
}

.reset-feedback-stack {
    display: grid;
    gap: 12px;
}

.reset-feedback-stack:empty {
    display: none;
}

.reset-alert {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    font-size: 14px;
    line-height: 1.65;
}

.reset-alert a {
    color: inherit;
    font-weight: 700;
    word-break: break-word;
}

.reset-alert strong {
    color: #ffffff;
}

.reset-alert--error {
    color: #ffd2db;
    background: rgba(251, 113, 133, 0.12);
    border-color: rgba(251, 113, 133, 0.24);
}

.reset-alert--success {
    color: #d3f7ea;
    background: rgba(52, 211, 153, 0.12);
    border-color: rgba(52, 211, 153, 0.24);
}

.reset-alert--info {
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.22);
}

.reset-form {
    display: grid;
    gap: 18px;
}

.reset-field {
    display: grid;
    gap: 8px;
}

.reset-label {
    color: #f8fafc;
    font-size: 14px;
    font-weight: 700;
}

.reset-field-shell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 0 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.reset-field-shell > * {
    min-width: 0;
}

.reset-field-shell:focus-within {
    border-color: var(--reset-border-strong);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.reset-field-shell.is-invalid {
    border-color: rgba(251, 113, 133, 0.44);
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.1);
}

.reset-field-shell.is-valid {
    border-color: rgba(52, 211, 153, 0.38);
}

.reset-field-prefix {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.16);
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.reset-form input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--reset-text);
    font: inherit;
    font-size: 15px;
}

.reset-form input::placeholder {
    color: rgba(148, 163, 184, 0.58);
}

.reset-password-toggle {
    flex: 0 0 auto;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--reset-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.reset-password-toggle:hover {
    color: #ffffff;
}

.reset-field-feedback {
    min-height: 18px;
    margin: 0;
    color: var(--reset-muted);
    font-size: 12px;
    line-height: 1.5;
}

.reset-field-feedback.is-error {
    color: #ffc4cf;
}

.reset-field-feedback.is-success {
    color: #bff3df;
}

.reset-button {
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border: 0;
    border-radius: 18px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--reset-primary) 0%, #0f766e 100%);
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 20px 36px rgba(37, 99, 235, 0.28);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.reset-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 42px rgba(37, 99, 235, 0.32);
    filter: brightness(1.04);
}

.reset-button:disabled {
    cursor: wait;
    opacity: 0.96;
}

.reset-button-label {
    display: inline-flex;
    align-items: center;
}

.reset-button-label--loading,
.reset-button-spinner {
    display: none;
}

.reset-button.is-loading .reset-button-spinner,
.reset-button.is-loading .reset-button-label--loading {
    display: inline-flex;
}

.reset-button.is-loading .reset-button-label:not(.reset-button-label--loading) {
    display: none;
}

.reset-button-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 999px;
    animation: reset-spin 0.85s linear infinite;
}

.reset-helper-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.reset-helper-bar strong {
    display: block;
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 13px;
}

.reset-helper-bar span {
    color: var(--reset-muted);
    font-size: 12px;
    line-height: 1.55;
}

.reset-badge-soft {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.22);
    color: #bfdbfe;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.reset-badge-soft::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--reset-primary);
}

.reset-strength {
    display: grid;
    gap: 10px;
}

.reset-strength-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.reset-strength-bar span {
    display: block;
    width: 8%;
    height: 100%;
    border-radius: inherit;
    background: #475569;
    transition: width 0.18s ease, background-color 0.18s ease;
}

.reset-strength-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--reset-muted);
    font-size: 12px;
}

.reset-strength-meta strong {
    color: #ffffff;
    font-size: 13px;
}

.reset-rules-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    list-style: none;
}

.reset-rule {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--reset-muted);
    font-size: 12px;
    line-height: 1.45;
}

.reset-rule::before {
    content: "";
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.reset-rule.is-met {
    color: #dbfbee;
    border-color: rgba(52, 211, 153, 0.26);
    background: rgba(52, 211, 153, 0.08);
}

.reset-rule.is-met::before {
    background: var(--reset-success);
    box-shadow: 0 0 14px rgba(52, 211, 153, 0.4);
}

.reset-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    width: 100%;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.reset-link-btn:hover {
    border-color: var(--reset-border-strong);
    background: rgba(37, 99, 235, 0.1);
}

.reset-footer {
    margin: 0;
    text-align: center;
    color: var(--reset-muted);
    font-size: 14px;
}

.reset-footer a {
    color: #dbeafe;
    font-weight: 700;
}

.reset-footer a:hover {
    color: #ffffff;
}

@keyframes reset-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 980px) {
    .reset-shell {
        grid-template-columns: 1fr;
    }

    .reset-panel--form {
        order: -1;
    }
}

@media (max-width: 640px) {
    .reset-page {
        padding: 18px;
    }

    .reset-panel--intro,
    .reset-panel--form {
        padding: 24px;
    }

    .reset-panel {
        border-radius: 24px;
    }

    .reset-title,
    .reset-title--intro {
        font-size: 2rem;
    }

    .reset-helper-bar,
    .reset-strength-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .reset-rules-grid {
        grid-template-columns: 1fr;
    }

    .reset-meta,
    .reset-badge-soft,
    .reset-pill {
        width: 100%;
    }

    .reset-meta {
        gap: 8px;
    }

    .reset-pill,
    .reset-badge-soft {
        justify-content: center;
    }
}
