/* ===== Forms ===== */
form {
    max-width: 640px
}

#edit-form {
    max-width: none;
    margin: 0 auto 2rem; /* center and add bottom spacing */
}

.form-row {
    margin-bottom: 1rem
}

label {
    display: block;
    margin-bottom: .4rem;
    color: var(--ink);
    font-weight: 600
}

input[type=text], input[type=email], input[type=tel], input[type=password], select, textarea {
    width: 100%;
    padding: .7rem .8rem;
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,.25);
    background: #0b1325;
    color: var(--ink);
    transition: border-color .12s ease, box-shadow .12s ease;
}

textarea {
    min-height: 120px
}

    input:focus, select:focus, textarea:focus {
        outline: none;
        border-color: rgba(124,92,255,.6);
        box-shadow: 0 0 0 3px rgba(124,92,255,.25);
    }

.helper {
    color: var(--muted);
    font-size: .9rem;
    margin-top: .35rem
}

.error {
    color: #fecaca;
    font-weight: 600
}

.form-actions {
    margin-top: 1rem;
    display: flex;
    gap: .75rem;
    flex-wrap: wrap
}

.inline-hint {
    font-size: .9rem;
    color: var(--muted)
}

.input-hint {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #dc2626;
    transition: color 0.2s ease;
}

    .input-hint.ok {
        color: #16a34a;
    }

.auth-box {
    max-width: 560px;
    margin: 1rem 0;
    padding: var(--gap-2);
    border-radius: var(--rad);
    background: var(--surface);
    border: 1px solid rgba(148,163,184,.12);
    box-shadow: var(--shadow-1)
}

.password-rules {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

    .password-rules li {
        color: #dc2626;
        transition: color 0.2s ease;
    }

        .password-rules li.ok {
            color: #16a34a;
        }

.password-match,
.input-hint {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #dc2626;
    transition: color 0.2s ease;
}

    .password-match.ok,
    .input-hint.ok {
        color: #16a34a;
    }

.grid.grid-2 {
    align-items: stretch;
}

    .grid.grid-2 > .card {
        display: flex;
        flex-direction: column;
    }

.form-control {
    width: 100%;
    padding: .7rem .8rem;
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,.25);
    background: #0b1325;
    color: var(--ink);
    transition: border-color .12s ease, box-shadow .12s ease;
}

