/* Account recovery wizard styles (ported with the /recover feature).
   Only the classes not already in components.css/app.css on this branch live here. */

/* Small format/pattern hint under an input */
.maas-form-hint {
    display: block;
    font-size: var(--font-size-xs, 0.78rem);
    color: var(--color-gray-500, #6b7280);
    margin-top: var(--space-1, 0.25rem);
    line-height: 1.35;
}

/* A recovery field that didn't match — highlight the whole input in red */
.maas-form-input--error {
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

/* Per-field ✓/✗ verdict shown next to a label after a recovery attempt */
.maas-field-ok {
    color: #16a34a;
    font-weight: var(--font-weight-semibold, 600);
    margin-left: 0.35rem;
}

.maas-field-bad {
    color: #dc2626;
    font-weight: var(--font-weight-semibold, 600);
    font-size: var(--font-size-xs, 0.78rem);
    margin-left: 0.35rem;
}

/* Recovery Wizard — step indicator */
.recover-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.25rem;
}

.recover-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 56px;
}

.recover-step-num {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #d1d5db;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1;
    transition: background 0.2s, color 0.2s;
}

.recover-step.active .recover-step-num {
    background: #2d6a4f;
    color: #ffffff;
}

.recover-step.done .recover-step-num {
    background: #10b981;
    color: #ffffff;
}

.recover-step.done i {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.recover-step-label {
    font-size: 0.6875rem;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}

.recover-step.active .recover-step-label {
    color: #2d6a4f;
    font-weight: 700;
}

.recover-step.done .recover-step-label {
    color: #10b981;
}

.recover-step-line {
    flex: 1;
    height: 2px;
    background: #d1d5db;
    margin-bottom: 1.1rem;
    min-width: 1.5rem;
}

/* 6-digit code input in the wizard */
.recover-code-input {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5rem;
}

.recover-code-hint {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0.375rem 0 0;
}

/* Spinner in the wizard's busy-state buttons */
@keyframes recoverSpin {
    to { transform: rotate(360deg); }
}

.recover-steps ~ * .bi-hourglass-split,
.maas-btn .bi-hourglass-split {
    animation: recoverSpin 1s linear infinite;
}

/* Narrow phones: make the code input a bit smaller */
@media (max-width: 420px) {
    .recover-code-input {
        font-size: 1.375rem;
        letter-spacing: 0.375rem;
    }
}
