:root {
    --forgot-green: #1cad75;
    --forgot-green-strong: #2ea043;
    --forgot-bg: #0d1117;
    --forgot-panel: rgba(22, 27, 34, 0.92);
    --forgot-panel-alt: rgba(13, 17, 23, 0.88);
    --forgot-border: #30363d;
    --forgot-text: #f8fbf9;
    --forgot-text-soft: rgba(223, 232, 227, 0.74);
}

.baseholder {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at 10% 0%, rgba(28, 173, 117, 0.16), transparent 24%),
        radial-gradient(circle at 88% 6%, rgba(46, 160, 67, 0.12), transparent 20%),
        linear-gradient(to right, rgba(48, 54, 61, 0.16) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(48, 54, 61, 0.16) 1px, transparent 1px),
        var(--forgot-bg);
    background-size: auto, auto, 58px 58px, 58px 58px, auto;
    color: var(--forgot-text);
    overflow-x: hidden;
}

.container {
    max-width: 100%;
}

.forgotPageShell {
    min-height: calc(100vh - 48px);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 40px;
}

.forgotCard {
    width: min(420px, 100%);
    display: grid;
    gap: 18px;
    padding: clamp(22px, 3vw, 28px);
    border: 1px solid var(--forgot-border);
    border-radius: 22px;
    background: linear-gradient(145deg, var(--forgot-panel), var(--forgot-panel-alt));
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.forgotHero,
.forgotSectionHeader,
.forgotFormStack,
.codeEntryContainer,
.forgotResetForm {
    display: grid;
    gap: 10px;
}

.forgotPasswordDiv .forgotFormStack {
    margin-top: 24px;
}

.is-hidden {
    display: none !important;
}

.forgotLockIcon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 16px;
    color: #97e8c5;
    border: 1px solid rgba(28, 173, 117, 0.22);
    background: rgba(28, 173, 117, 0.1);
}

.forgotLockIcon .fa-lock {
    font-size: 1.2rem;
}

.forgotStepBadge {
    margin: 0 auto;
    padding: 7px 12px;
    border: 1px solid rgba(28, 173, 117, 0.24);
    border-radius: 999px;
    background: rgba(28, 173, 117, 0.1);
    color: #b8f2d9;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.forgotHeading {
    margin: 0;
    color: var(--forgot-text);
    font-size: clamp(1.9rem, 4vw, 2.35rem);
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.02;
    text-align: center;
}

.forgotSubcopy,
.forgotSectionHeader p,
#notification,
.forgotHelperRow {
    margin: 0;
    color: var(--forgot-text-soft);
    font-size: 0.92rem;
    line-height: 1.55;
    text-align: center;
}

.forgotPasswordDiv,
.entryFieldDiv,
.passwordEntryDiv {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.forgotSectionHeader,
.forgotFormStack,
.codeEntryContainer,
.forgotResetForm {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
}

.entryFieldDiv,
.passwordEntryDiv {
    display: none;
}

.forgotSectionHeader h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--forgot-text);
    text-align: center;
}

.forgotStageLabel {
    margin: 0;
    color: #97e8c5;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}

.forgotStageMessage {
    margin: 0;
}

.forgotSectionHeader p,
#notification {
    text-align: center;
}

.forgotField {
    width: 100%;
    display: grid;
    gap: 7px;
}

#passwordFieldsBlock {
    display: grid;
    gap: 10px;
}

.forgotField label {
    color: #d7e2dc;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

input[type="email"],
input[type="text"],
input[type="password"],
#resetCode {
    min-height: 52px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--forgot-border);
    background: rgba(13, 17, 23, 0.9);
    color: var(--forgot-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="email"]::placeholder,
input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: rgba(214, 224, 219, 0.38);
}

input[type="email"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
#resetCode:focus {
    border-color: rgba(28, 173, 117, 0.58);
    box-shadow: 0 0 0 4px rgba(28, 173, 117, 0.12);
    outline: none;
}

.sumbitButton {
    display: block;
    width: 100%;
    min-height: 54px;
    margin: 0 auto;
    padding: 0 18px 2px;
    border: none;
    border-radius: 18px;
    background: var(--forgot-green);
    color: #0d1117;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 18px 36px rgba(28, 173, 117, 0.2);
    transition: transform 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.sumbitButton:hover {
    background: var(--forgot-green-strong);
    transform: translateY(-2px);
}

.sumbitButton:disabled {
    opacity: 0.72;
    cursor: wait;
    transform: none;
}

.forgotSecondaryButton {
    border: none;
    background: transparent;
    color: #97e8c5;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.forgotSecondaryButton:hover,
.forgotBackLink:hover {
    color: #d4ffe8;
    text-decoration: none;
}

.forgotHelperRow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

.forgotInlineStatus {
    display: none;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(204, 47, 66, 0.35);
    background: rgba(204, 47, 66, 0.12);
    color: #ffd7dd;
    font-weight: 600;
    line-height: 1.45;
}

.forgotBackLink {
    color: #97e8c5;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.forgotBackLink--top {
    width: fit-content;
    justify-self: center;
}

@media (max-width: 700px) {
    .forgotPageShell {
        min-height: auto;
        padding-top: 16px;
    }

    .forgotCard {
        border-radius: 20px;
    }
}

@media (max-width: 520px) {
    .forgotHelperRow {
        align-items: center;
        flex-direction: column;
    }
}
