/*
 * Login ("workshop access") — a job card / key tag like the ones hung on a bodyshop board.
 * Signature: a hi-vis hazard stripe down the card spine + a reinforced eyelet (key-tag hole).
 */

.auth {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 2rem 1.25rem;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(0, 222, 145, 0.10), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(255, 255, 255, 0.04), transparent 55%),
        var(--bs-ink);
    color: var(--bs-text);
}

.auth__card {
    width: min(880px, 100%);
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    background: var(--bs-paper);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04),
        0 30px 70px -30px rgba(0, 0, 0, 0.75);
}

/* ---- Left: the tag ---- */
.auth__tag {
    position: relative;
    background:
        linear-gradient(180deg, var(--bs-steel-2), var(--bs-steel) 55%, var(--bs-ink-2));
    color: #eef1f5;
    padding: 2.5rem 2.25rem 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    isolation: isolate;
}

/* Hazard stripe down the spine (the card's binding edge) */
.auth__tag::after {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: 10px;
    height: 100%;
    background: repeating-linear-gradient(
        -45deg,
        var(--bs-hi-vis) 0 12px,
        var(--bs-ink-2) 12px 24px
    );
    opacity: 0.92;
}

/* Reinforced eyelet — the key-tag hole */
.auth__punch {
    position: absolute;
    top: 1.15rem;
    inset-inline-start: 1.25rem;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bs-ink-2);
    border: 2px solid var(--bs-hi-vis);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.auth__brand {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth__eyebrow-light {
    color: var(--bs-hi-vis);
}

.auth__wordmark {
    font-family: var(--bs-font-display);
    font-size: clamp(3rem, 7vw, 4.4rem);
    line-height: 0.86;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
}
.auth__logo { display: block; width: 100%; max-width: 320px; height: auto; flex-shrink: 0; }

.auth__tagline {
    margin: 0;
    color: #aeb6c2;
    font-size: 0.95rem;
    max-width: 24ch;
}

.auth__meta {
    margin-top: auto;
    font-family: var(--bs-font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7e879a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth__meta::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bs-hi-vis);
    box-shadow: 0 0 0 3px rgba(0, 222, 145, 0.18);
}

/* ---- Right: the form ---- */
.auth__form {
    padding: 2.75rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth__title {
    font-family: var(--bs-font-ui);
    font-weight: 700;
    font-size: 1.9rem;
    letter-spacing: -0.01em;
    margin: 0.35rem 0 0.15rem;
}

.auth__lead {
    color: var(--bs-muted);
    margin: 0 0 1.4rem;
    font-size: 0.95rem;
}

.auth__error {
    margin: 0 0 1.1rem;
    padding: 0.7rem 0.9rem;
    border-radius: 9px;
    background: #fdecec;
    border: 1px solid #f3b4b4;
    color: #8f1d1d;
    font-size: 0.9rem;
}

.auth__fields {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.field label {
    font-family: var(--bs-font-mono);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
    color: var(--bs-muted);
}

.field input {
    font-family: var(--bs-font-ui);
    font-size: 1rem;
    padding: 0.8rem 0.9rem;
    border: 1.5px solid var(--bs-line);
    border-radius: 10px;
    background: #fff;
    color: var(--bs-text);
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.field input::placeholder {
    color: #aab0bb;
}

.field input:focus {
    outline: none;
    border-color: var(--bs-hi-vis);
    box-shadow: 0 0 0 4px rgba(0, 222, 145, 0.22);
}

.auth__submit {
    margin-top: 0.6rem;
    font-family: var(--bs-font-ui);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bs-ink-2);
    background: var(--bs-hi-vis);
    border: none;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: background-color 0.12s ease, transform 0.04s ease;
}

.auth__submit:hover {
    background: var(--bs-hi-vis-press);
}

.auth__submit:active {
    transform: translateY(1px);
}

.auth__submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 222, 145, 0.35), 0 0 0 1.5px var(--bs-ink-2);
}

.auth__foot {
    margin: 1.5rem 0 0;
}

/* ---- Responsive: stack the tag above the form ---- */
@media (max-width: 720px) {
    .auth__card {
        grid-template-columns: 1fr;
    }

    .auth__tag {
        padding: 1.75rem 1.5rem 1.5rem;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem 1.25rem;
    }

    .auth__tag::after {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 8px;
        background: repeating-linear-gradient(-45deg, var(--bs-hi-vis) 0 12px, var(--bs-ink-2) 12px 24px);
    }

    .auth__brand {
        margin-top: 0;
    }

    .auth__tagline {
        display: none;
    }

    .auth__meta {
        margin-top: 0;
        width: 100%;
    }

    .auth__form {
        padding: 1.75rem 1.5rem 2rem;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .auth__card {
        animation: auth-rise 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    @keyframes auth-rise {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
