.reset-stack {
    display: grid;
    justify-items: center;
    width: 100%;
}

.reset-card {
    max-width: 460px;
}

.reset-header-icon {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(0, 242, 234, .35);
    color: var(--primary-color);
    font-size: .75rem;
}

.reset-notice {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1.4rem;
    padding: .85rem;
    border: 1px solid rgba(245, 158, 11, .32);
    background: rgba(245, 158, 11, .08);
}

.reset-notice-icon {
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    height: 28px;
    border: 1px solid rgba(245, 158, 11, .35);
    color: #f59e0b;
    font-weight: 700;
}

.reset-notice-icon--success {
    border-color: rgba(34, 197, 94, .35);
    color: #22c55e;
}

.reset-notice strong {
    color: #fbbf24;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.reset-notice p {
    margin-top: .3rem;
    color: #d1d5db;
    font-size: .75rem;
    line-height: 1.55;
}

.reset-notice small {
    display: block;
    margin-top: .35rem;
    color: #9ca3af;
    font-size: .64rem;
}

.reset-account {
    margin-bottom: 1.7rem;
    color: #9ca3af;
    font-size: .72rem;
}

.reset-account strong {
    color: var(--primary-color);
}

.reset-field-errors {
    margin: .45rem 0 0;
    padding: 0;
    color: #fca5a5;
    font-size: .68rem;
    line-height: 1.45;
    list-style: none;
}

.reset-code-group {
    margin-top: .4rem;
}

.reset-code-input {
    text-transform: uppercase;
    letter-spacing: .38em;
    font-size: 1.2rem !important;
    font-weight: 700;
}

.reset-card .form-group:has(.reset-field-errors) input {
    border-color: #ef4444;
}

.reset-rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .35rem .65rem;
    margin-top: -.2rem;
    padding: .7rem .8rem;
    border: 1px solid rgba(0, 242, 234, .12);
    background: rgba(0, 242, 234, .035);
}

.reset-rules strong {
    grid-column: 1 / -1;
    margin-bottom: .1rem;
    color: rgba(0, 242, 234, .72);
    font-size: .67rem;
    text-transform: uppercase;
}

.reset-rules span {
    position: relative;
    padding-left: .75rem;
    color: #9ca3af;
    font-size: .63rem;
    line-height: 1.35;
}

.reset-rules span::before {
    content: "";
    position: absolute;
    top: .38rem;
    left: 0;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
}

.reset-security-note {
    margin-top: 1rem;
    color: rgba(0, 242, 234, .45);
    font-size: .65rem;
    line-height: 1.5;
    text-align: center;
}

.reset-logout-form {
    margin-top: .9rem;
}

.reset-logout-form button {
    border: 0;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    font: inherit;
    font-size: .68rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.reset-logout-form button:hover {
    color: var(--primary-color);
}

.reset-back-link {
    margin-top: .9rem;
    color: #6b7280;
    font-size: .68rem;
    text-underline-offset: 3px;
}

.reset-back-link:hover {
    color: var(--primary-color);
}

@media (max-width: 480px) {
    .reset-card .card-body {
        padding: 1.2rem;
    }

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