/* The auth pages load this sheet directly and have no <link> to vars.css:
   importing it here is what makes them consume the very same tokens as the app,
   so `html[data-theme="dark"]` repaints them too. */
@import url('vars.css');

body {
    margin: 0;
    padding: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    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;
}

.login-logo {
    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;
}

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: 600;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--input-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: 600;
}

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;
}
