.auth-page {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
}

#auth-logo {
    width: min(22rem, 80vw);
    max-height: 8rem;
    object-fit: contain;
}

.auth-card {
    background-color: var(--pane-background);
    border-radius: var(--component-border-radius);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.25);
    padding: 1.75rem;
    width: min(26rem, 92vw);
    box-sizing: border-box;
}

.auth-card-title {
    font-size: 1.6rem;
    font-weight: bold;
    text-align: center;
}

.auth-card-subtitle {
    text-align: center;
    opacity: 0.7;
    margin-bottom: 1.25rem;
}

.auth-errors {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.auth-error {
    background-color: #ffd9d9;
    border-left: 0.25rem solid #d33;
    border-radius: 0.25rem;
    padding: 0.5rem 0.7rem;
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-label {
    font-weight: bold;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.auth-input {
    padding: 0.55rem 0.6rem;
    font-size: 1rem;
    margin-bottom: 0.35rem;
    border: 2px solid transparent;
}

/* Keeps the layout from jumping when a hint is only shown on one page. */
.auth-hint {
    font-size: 0.8rem;
    opacity: 0.65;
    margin-bottom: 0.85rem;
}

.auth-input:last-of-type {
    margin-bottom: 1rem;
}

.auth-submit {
    padding: 0.65rem;
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 0.5rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.1rem;
    font-size: 0.9rem;
}

.auth-switch a {
    font-weight: bold;
}

/* Session bar shown on the home page once signed in. */
.session-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    color: white;
}

.session-bar-user {
    font-weight: bold;
}

.session-bar a,
.session-bar button {
    background-color: var(--component-base-color);
    color: #222;
    border-radius: var(--component-border-radius);
    border: none;
    padding: 0.35rem 0.8rem;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
}

.session-bar a:hover,
.session-bar button:hover {
    background-color: var(--component-hover-background);
    text-decoration: none;
}

/* Banner walking a tournament participant into their assigned room. */
.tournament-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0.75rem 1rem 0;
    padding: 0.9rem 1.2rem;
    border-radius: var(--component-border-radius);
    background-color: #ffe9a8;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.25);
}

.tournament-banner-title {
    font-size: 1.15rem;
    font-weight: bold;
}

.tournament-banner-button {
    background-color: #2e7d32;
    color: white !important;
    font-weight: bold;
    padding: 0.6rem 1.2rem;
    border-radius: var(--component-border-radius);
    text-decoration: none;
    white-space: nowrap;
}

.tournament-banner-button:hover {
    background-color: #1b5e20;
    text-decoration: none;
}

/* Section headers splitting tournament rooms from open rooms. */
.lobby-section-header {
    font-weight: bold;
    padding: 0.4rem 0.2rem;
    opacity: 0.85;
}

/* Big brand title above the sign in card. */
.auth-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.auth-brand-icon {
    width: 5rem;
    height: 5rem;
    /* Lifts the icon off the dark, blurred backdrop. */
    filter: drop-shadow(0 0.25rem 0.6rem rgba(0, 0, 0, 0.6));
}

.auth-brand-title {
    margin: 0;
    font-size: clamp(2.4rem, 7vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: white;
    /* The backdrop is busy in places, so the text carries its own contrast. */
    text-shadow: 0 0.15rem 0.9rem rgba(0, 0, 0, 0.85);
}

.auth-brand-by {
    display: block;
    font-size: 0.35em;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #3ddc4b;
    text-transform: uppercase;
}

@media (max-width: 30rem) {
    .auth-brand-icon {
        width: 3.5rem;
        height: 3.5rem;
    }
}

/* Brand lockup inside the session bar. It sits at the far left; the account
   controls stay right, hence space-between on the bar itself. */
.session-bar {
    justify-content: space-between;
}

.brand-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white !important;
    background: none !important;
    padding: 0 !important;
    margin-right: auto;
}

.brand-mini:hover {
    text-decoration: none;
    opacity: 0.85;
}

.brand-mini-icon {
    width: 2rem;
    height: 2rem;
    filter: drop-shadow(0 0.1rem 0.3rem rgba(0, 0, 0, 0.5));
}

.brand-mini-text {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.05;
}

.brand-mini-by {
    display: block;
    font-size: 0.62em;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #3ddc4b;
    text-transform: uppercase;
}

@media (max-width: 34rem) {
    .brand-mini-text {
        display: none;
    }
}
