/* 2cool2026 — login screen and the 2026 site footer.
 *
 * Built from the "Login" frame in the 2Cool Traffic School — Site Figma file.
 * Everything is scoped under .tc-login so it cannot leak into the
 * legacy Bootstrap pages that still share base.html.twig.
 */

:root {
    --tc26-blue:   #0a18be;
    --tc26-orange: #ff6900;
    --tc26-green:  #3aad03;
    --tc26-green-hover: #339802;
    --tc26-ink:    #12233b;
    --tc26-muted:  #64748b;
    --tc26-border: #d9dee6;
    --tc26-font:   Nunito, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Login ---------- */

.tc-login {
    width: 100%;
    padding: 56px 16px 112px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--tc26-font);
    color: var(--tc26-ink);
}

.tc-login__logo {
    display: block;
    margin-bottom: 32px;
}

.tc-login__logo img {
    display: block;
    height: 48px;
    width: auto;
}

.tc-login__card {
    width: 100%;
    max-width: 576px;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--tc26-border);
    border-radius: 24px;
}

.tc-login__title {
    margin: 0 0 16px;
    font-family: var(--tc26-font);
    font-size: 24px;
    font-weight: 800;
    line-height: 40px;
    letter-spacing: -0.72px;
    text-align: center;
    text-transform: none;
    color: var(--tc26-blue);
}

.tc-login__title span {
    color: var(--tc26-orange);
}

/* The sentence under the title saying why the screen is here (password expired). */
.tc-login__intro {
    margin: -8px 0 20px;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    color: var(--tc26-muted);
}

/* The running checklist password_requirements_controller.js puts after a new-password field.
   It sets its own margins inline for a Bootstrap form row; here the form's gap already spaces
   it, hence !important. */
.tc-login__form .password-requirements {
    margin: -6px 0 0 !important;
    padding: 0 4px;
    font-family: var(--tc26-font);
    font-size: 13px;
    line-height: 20px;
}

.tc-login__alert {
    border-radius: 14px;
    font-size: 14px;
}

.tc-login__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
}

/* The label sits inside the field's border, above the value. */
.tc-field {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 52px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--tc26-border);
    border-radius: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.tc-field:focus-within {
    border-color: var(--tc26-blue);
    box-shadow: 0 0 0 3px rgba(10, 24, 190, .12);
}

.tc-field label {
    margin: 0;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--tc26-ink);
}

.tc-field input {
    width: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    font-family: var(--tc26-font);
    font-size: 16px;
    line-height: 22px;
    color: var(--tc26-ink);
}

.tc-field--password {
    padding-right: 48px;
}

.tc-field__toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--tc26-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.tc-field__toggle:hover,
.tc-field__toggle:focus-visible {
    background: #f1f5fa;
    color: var(--tc26-ink);
    outline: 0;
}

.tc-login__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 52px;
    padding: 0 36px;
    border: 0;
    border-radius: 14px;
    background: var(--tc26-green);
    color: #fff;
    font-family: var(--tc26-font);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color .15s ease;
}

.tc-login__submit:hover,
.tc-login__submit:focus-visible {
    background: var(--tc26-green-hover);
    outline: 0;
}

.tc-login__submit i {
    color: #ffe14d;
    font-size: 13px;
}

/* The line under the button saying what it does (the emailed login link screen). */
.tc-login__note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    line-height: 18px;
    color: var(--tc26-ink);
}

.tc-login__note i {
    flex: none;
    margin-top: 2px;
    font-size: 15px;
    color: var(--tc26-orange);
}

.tc-login__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.tc-login__links a {
    font-size: 13px;
    font-weight: 600;
    color: var(--tc26-blue);
    text-decoration: underline;
}

.tc-login__links a:hover {
    color: var(--tc26-orange);
}

@media (max-width: 575.98px) {
    .tc-login {
        padding: 32px 8px 64px;
    }
    .tc-login__card {
        padding: 24px 16px;
        border-radius: 20px;
    }
    .tc-login__title {
        font-size: 21px;
        line-height: 30px;
    }
}

/* The .tc-footer rules live in 2C-header.css, which every page loads. */
