/* The auth pages link vars.css and fonts.css before this sheet: the very same
   tokens and faces as the app, so `html[data-theme="dark"]` repaints these pages
   too and they never depend on a remote font host. Declared as <link> rather
   than @import because an import is only discovered once THIS sheet has been
   parsed -- one serial round trip that left the page untouched by any style. */

/* See static/css/layout.css: a control does not inherit the page font unless it
   is told to, and the auth pages carry the first three controls anyone touches. */
button, input, select, textarea {
    font-family: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--lato);
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    background: var(--panel-color);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-auth);
    width: 100%;
    max-width: 400px;
}

/* The auth pages load their own sheets, not the app's: a `.brand-mark` rule in
   chat.css would never reach them. Scoping it to `.login-container` keeps this
   one on the auth surface, where the sheet is loaded. */
.login-container .brand-mark {
    width: 60px;
    height: 60px;
    display: block;
    margin: 0 auto 1.25rem;
}

h1 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    text-align: center;
    letter-spacing: -0.03em;
    font-size: 1.9rem;
}

/* The wordmark: the brand face, as in the app's left panel. The h1's own
   tracking is tuned for Carlito and closes a script face up, so it is reset
   here rather than removed from the shared rule the password page also uses. */
.login-container .brand-name {
    font-family: var(--oleo);
    font-weight: 400;
    font-size: 2.4rem;
    line-height: 1;
    letter-spacing: normal;
}

p {
    margin-bottom: 2rem;
    color: var(--text-dim);
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--panel-border-color);
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--text-color);
    font: inherit;
}

/* The identifier on the activation page: displayed for information, never
   edited (the invitation token decides which account is activated), so it
   reads as an inert value rather than a field. */
.form-group input[readonly] {
    background: var(--bg-color);
    color: var(--text-dim);
    cursor: default;
}

.password-hint {
    margin-top: 0.5rem;
    margin-bottom: 0;
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-dim);
}

button {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--accent-color);
    color: var(--on-accent);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
}

button:hover {
    background-color: var(--accent-hover);
}

.login-links {
    margin-top: 1.25rem;
    text-align: center;
}

.login-links a {
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.login-links a:hover {
    text-decoration: underline;
}

.error {
    background: var(--error-bg);
    color: var(--error-text);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.success {
    background: var(--success-bg);
    color: var(--success-text);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}
