/*
 * The centred card behind the sign-in and password change pages. A page opts
 * in with auth-card and marks each part of the card with its role class. The
 * custom properties are everything a variant may change; auth-card-signin is
 * one such variant and sets nothing else.
 */

.auth-card {
    --auth-card-surface: #2f3338;
    --auth-card-corner: 0;
    --auth-card-icon-ink: lightgray;
    --auth-card-button-width: 100%;
    --auth-card-button-padding: 15px;
    --auth-card-button-corner: 0;
    --auth-card-button-clearance: 0;

    /* Shared by the field row's icon box and input, and by every hairline. */
    --auth-card-row-height: 50px;
    --auth-card-rule: 1px solid #000;

    width: 400px;
    margin: 100px auto;
    border-radius: var(--auth-card-corner);
    background-color: var(--auth-card-surface);
    box-shadow: 0 0 9px rgba(0, 0, 0, 0.3);
}

.auth-card-signin {
    --auth-card-surface: #272b30;
    --auth-card-corner: 10px;
    --auth-card-icon-ink: darkgray;
    --auth-card-button-width: 80%;
    --auth-card-button-padding: 12px;
    --auth-card-button-corner: 30px;
    --auth-card-button-clearance: 30px;
}

/* Everything above the form is centred text. The theme supplies the subtitle's size. */

.auth-card-logo,
.auth-card-title,
.auth-card-subtitle,
.auth-card-error,
.auth-card-success {
    text-align: center;
}

.auth-card-logo {
    padding-top: 40px;
}

.auth-card-title {
    padding-bottom: 5px;
    color: #fff;
    font-size: 24px;
}

.auth-card-subtitle {
    padding: 0 10px 20px;
    border-bottom: var(--auth-card-rule);
    color: #ccc;
}

/* A notice above the form. A success notice takes its colour from the theme's .text-success. */

.auth-card-error,
.auth-card-success {
    margin-top: 20px;
    padding: 0 20px;
    font-size: 16px;
}

/* Named on hover too, where the theme's .text-danger:hover outranks a single class. */
.auth-card-error,
.auth-card-error:hover {
    color: #fcc;
}

/* The form lays its fields out as rows of an icon box beside an input. */

.auth-card form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 20px;
}

.auth-card-field-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--auth-card-row-height);
    height: var(--auth-card-row-height);
    background-color: #1c1e21;
    color: var(--auth-card-icon-ink);
}

/* Scoped under the card so the theme's focus border does not replace the rule. */
.auth-card .auth-card-field {
    width: 310px;
    height: var(--auth-card-row-height);
    margin-bottom: 20px;
    padding: 0 15px;
    border: var(--auth-card-rule);
    font-size: 16px;
}

/*
 * diskover.css paints every input, this one included, with !important field
 * colours, so the button's own colours need !important to show.
 */
.auth-card-submit {
    width: var(--auth-card-button-width);
    margin: 20px 0 var(--auth-card-button-clearance);
    padding: var(--auth-card-button-padding);
    border: 0;
    border-radius: var(--auth-card-button-corner);
    background-color: #3c4247 !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.auth-card-submit:hover {
    background-color: #474d54 !important;
}
