/*  ********************************************************************************  **
**  ********************************************************************************  **

    Account form

    Loaded by the framework's own enqueueing, which matches a stylesheet to a
    request by its file name: shortcode_eat_account is the alias for the
    [eat_account] shortcode, so this is fetched wherever that shortcode appears
    and nowhere else.

    Named after the shortcode rather than the page, so it follows the form. Put
    the shortcode on a second page and this comes with it; rename the page and
    nothing breaks.

**  ********************************************************************************  **
**  ********************************************************************************  */




.eat-account {
    max-width: 520px;
}

.eat-account-username,
.eat-account-hint {
    color: var(--eat-colour-text-light);
    font-size: calc(var(--eat-font-size-p) * 0.85);
}

.eat-account-subheading {
    margin-top: 20px;
    margin-bottom: 0;
    font-size: var(--eat-font-size-h3);
}

.eat-account-field {
    margin-bottom: 10px;
}
.eat-account-field label {
    display: block;
    margin-bottom: 5px;
    font-size: calc(var(--eat-font-size-p) * 0.85);
    font-weight: 600;
}
.eat-account-field input {
    display: block;
    width: 100%;
    padding: 11px;
    border: 1px solid var(--eat-colour-light-grey);
    border-radius: 8px;
    background: var(--eat-colour-white);
    color: var(--eat-colour-text);
    font-family: var(--eat-font-family);
    font-size: var(--eat-font-size-p);
}
.eat-account-field input:focus {
    border-color: var(--eat-colour-primary);
    box-shadow: 0 0 0 2px var(--eat-colour-primary-light);
    outline: 2px solid transparent;
}
.eat-account-field-error input {
    border-color: var(--eat-colour-primary-dark);
}

/*  The message sits with the field it belongs to and is tied to it with
    aria-describedby, so it is read out rather than only seen.  */
.eat-account-error {
    margin: 5px 0 0;
    color: var(--eat-colour-primary-dark);
    font-size: calc(var(--eat-font-size-p) * 0.85);
    font-weight: 600;
}

.eat-account-notice {
    margin-bottom: 20px;
    padding: 11px 14px;
    border-left: 4px solid var(--eat-colour-primary);
    border-radius: 4px;
    background: var(--eat-colour-off-white);
}
.eat-account-notice-error {
    border-left-color: var(--eat-colour-primary-dark);
}

.eat-account-actions {
    display: flex;
    align-items: center;
    gap: calc(var(--eat-spacing-base) * 2);
    margin-top: 20px;
}
.eat-account-logout {
    font-size: calc(var(--eat-font-size-p) * 0.85);
    font-weight: 600;
}
