/* ---- Login ----
   One column, one decision at a time. The two account modes are a tab pair
   rather than two pages so the address you already typed survives switching
   between them. */

.auth {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 340px;
    max-width: 100%;
    text-align: left;
}

.auth__tabs {
    display: flex;
    gap: 18px;
    margin-bottom: 4px;
}

.auth__tab {
    padding: 2px 0 6px;
    font-family: nexa-bold, sans-serif;
    font-size: 15px;
    color: var(--text-color-fade);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.auth__tab:hover {
    color: var(--text-color);
}

.auth__tab[aria-selected="true"] {
    color: var(--text-color);
    border-bottom-color: var(--primary-color);
}

.auth__field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.auth__row {
    display: flex;
    gap: 12px;
}

.auth__row .auth__field {
    flex: 1 1 0;
    min-width: 0;
}

.auth__label {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sub-text);
}

.auth__input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    /* The global input rule centres its text, which suits a single field on a
       splash screen and nothing in a form. */
    text-align: left;
    color: var(--text-color);
    background-color: var(--foreground-color);
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    outline: none;
    transition: border-color 0.2s;
}

.auth__input:focus {
    border-color: var(--primary-color);
}

.auth__submit {
    width: 100%;
    margin: 4px 0 0;
    padding: 11px;
    font-size: 14px;
}

/* Holds its line whether or not there is a message, so submitting does not
   shove the button down the page under the text that just appeared. */
.auth__message {
    margin: 0;
    min-height: 1.4em;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-color-fade);
}

.auth__message--error {
    color: #D98B8B;
}

.auth__message--ok {
    color: #8BD98B;
}

.auth__links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.auth__link {
    padding: 0;
    font-family: inherit;
    font-size: 12px;
    color: var(--sub-text);
    cursor: pointer;
    transition: color 0.2s;
}

.auth__link:hover {
    color: var(--secondary-color);
}

.auth__or {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 340px;
    max-width: 100%;
    margin: 22px 0 14px;
    color: var(--sub-text);
    font-size: 12px;
}

.auth__or::before,
.auth__or::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background-color: var(--foreground-color);
}

.auth__guest {
    width: 340px;
    max-width: 100%;
    padding: 11px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-color-fade);
    border: 1px solid var(--foreground-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.auth__guest:hover {
    color: var(--text-color);
    border-color: var(--sub-text);
}

.auth__tab:focus-visible,
.auth__link:focus-visible,
.auth__guest:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 3px;
}

/* The splash logo is large on a page that was only a logo; with a form under
   it, it has to make room. */
.main-wrapper-login .main-logo-login {
    height: 84px;
    width: 84px;
}

.main-wrapper-login .main-title-login {
    margin: 12px 0 26px;
    font-size: 26px;
}

@media (max-height: 760px) {
    .main-wrapper-login .main-logo-login {
        height: 56px;
        width: 56px;
    }
    .main-wrapper-login .main-title-login {
        margin: 8px 0 18px;
        font-size: 22px;
    }
    .auth__or {
        margin: 16px 0 10px;
    }
}
