.spark-auth-heading {
    text-align: center;
}

.spark-auth-heading .spark-dialog-title { margin-block-end: .35rem; }
.spark-auth-heading .spark-dialog-intro {
    margin: 0 0 .95rem;
    color: var(--lg-muted);
    line-height: 1.45;
}
.spark-auth-form .spark-auth-error { margin: 0; }
.spark-auth-heading h2:focus:not(:focus-visible) { outline: none; }

.spark-auth-error {
    margin: 0 0 1rem;
    padding: .75rem;
    color: var(--lg-danger);
    background: var(--lg-danger-fill);
    border: 1px solid var(--lg-danger-edge);
    border-radius: var(--lg-radius-control);
    font-size: .875rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.spark-auth-form {
    display: grid;
    gap: .75rem;
}

.spark-auth-names {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.spark-auth-names[hidden] { display: none; }

.spark-auth-school {
    display: grid;
    min-width: 0;
    gap: .65rem;
    padding: 0;
    margin: 0;
    border: 0;
}

.spark-auth [hidden] { display: none; }
.spark-auth-note { color: var(--lg-muted); font-size: .8rem; font-weight: 500; }

.spark-auth-form label {
    display: grid;
    gap: .35rem;
    font-size: .875rem;
    font-weight: 650;
}

.spark-auth-form :is(input, select) {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: .62rem .75rem;
    font: inherit;
    font-size: 1rem;
}

.spark-auth-form button[type="submit"] {
    min-height: 44px;
    margin-top: .2rem;
    padding: .7rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    cursor: pointer;
}

.spark-auth-form button:disabled {
    cursor: wait;
}

.spark-auth-switch {
    margin-top: .5rem;
    text-align: center;
    font-size: .875rem;
    font-weight: 550;
}

.spark-auth-switch button {
    min-height: 44px;
    padding: .25rem;
    border: 0;
    background: transparent;
    color: var(--lg-link);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.spark-auth-switch button:hover { text-decoration: underline; }
.spark-auth-switch button:focus-visible { outline: 2px solid var(--lg-focus); outline-offset: 3px; }
