/* assets/css/login.css
   Login page -- same .page/.card shell as everywhere else, a standalone
   cousin of trip-form.css / static-page-form.css (shares their field and
   button look) but narrower, since it's just two fields. Colors/tokens
   come from assets/css/base.css. */

.login-form {
    max-width: 26rem;
    margin: 0 auto;
}

.login-form h1 {
    margin: 0 0 1.5rem;
    font-size: 1.6rem;
    text-align: center;
}

.login-form .errors {
    background: #fdecec;
    border: 1px solid #f3b9b9;
    color: #8a1f1f;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    margin: 0 0 1.5rem;
}

.login-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.login-form input {
    display: block;
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.6rem 0.75rem;
    font: inherit;
    font-weight: 400;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    box-sizing: border-box;
}

.login-form input:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: -1px;
}

.login-form > form > button[type="submit"] {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem 1.75rem;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: var(--color-accent);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
}

.login-form > form > button[type="submit"]:hover {
    background: var(--color-logo);
}

.login-form .resend-form {
    margin: 0 0 1.5rem;
}

.login-form .resend-form button {
    padding: 0.5rem 1rem;
    font: inherit;
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    cursor: pointer;
}

.login-form .resend-form button:hover {
    background: var(--color-bg);
}

.login-form .login-links {
    margin: 1rem 0 0;
    text-align: center;
    color: var(--color-text-muted);
}

.login-form .login-links a {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}

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