/* The account pages (sign in, forgot password, reset password), laid out by _IdentityLayout: a slate brand panel with a
   pickup-to-drop-off route drawn large (the same from-and-to mark the jobs list uses), and a quiet white form. */
.signin {
    --slate: #0f172a;
    --slate-text: #cbd5e1;
    --ink: #1e293b;
    --muted: #64748b;
    --faint: #94a3b8;
    --rule: #e2e8f0;
    --rule-strong: #cbd5e1;
    --brand: #dc2626;
    --brand-dark: #b91c1c;
    --sky: #0ea5e9;
    --done: #059669;

    position: fixed;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(24rem, 1fr);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    overflow: auto;
}

/* Brand panel */
.signin-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem 3.5rem;
    background: var(--slate);
    background-image: radial-gradient(circle at 20% 15%, rgba(14, 165, 233, 0.12), transparent 45%);
    color: #fff;
    overflow: hidden;
}

.signin-route {
    position: absolute;
    inset: 8% 6% 32% 8%;
    width: 86%;
    height: 60%;
}

    .signin-route .route-dash {
        stroke-dasharray: 2 10;
        animation: route-in 1.6s ease-out both;
    }

    /* On the "password changed" page the drop-off is reached: the ring fills green. */
    .signin-route.is-arrived .route-end {
        fill: var(--done);
        stroke: #fff;
    }

@keyframes route-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.signin-brand h2 {
    position: relative;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 0.6rem;
    color: #fff;
}

.signin-brand p {
    position: relative;
    max-width: 34ch;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--slate-text);
    margin: 0;
}

/* Form panel */
.signin-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
}

.signin-form {
    width: 100%;
    max-width: 22rem;
}

/* Its own line, so an icon under it (link sent, password changed) starts a new line. */
.signin-logo {
    display: block;
    width: max-content;
    margin-bottom: 2.5rem;
}

    .signin-logo img {
        height: 2.6rem;
        width: auto;
    }

.signin-form h1 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0 0 0.35rem;
}

.signin-lede {
    color: var(--muted);
    font-size: 0.925rem;
    line-height: 1.5;
    margin: 0 0 1.75rem;
}

    .signin-lede strong {
        color: var(--ink);
        font-weight: 600;
    }

.signin-errors:empty,
.signin-errors.validation-summary-valid {
    display: none;
}

.signin-errors {
    margin-bottom: 1.25rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--brand-dark);
    font-size: 0.85rem;
}

    .signin-errors ul {
        margin: 0;
        padding-left: 1rem;
    }

.signin-field {
    margin-bottom: 1.1rem;
}

    .signin-field label {
        display: block;
        margin-bottom: 0.35rem;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--ink);
    }

    .signin-field input {
        width: 100%;
        padding: 0.65rem 0.8rem;
        border: 1px solid var(--rule-strong);
        border-radius: 0.55rem;
        background: #fff;
        font-size: 0.95rem;
        color: var(--ink);
        transition: border-color 120ms ease, box-shadow 120ms ease;
    }

        .signin-field input:focus {
            outline: none;
            border-color: var(--ink);
            box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12);
        }

        .signin-field input.input-validation-error {
            border-color: #f87171;
        }

.signin-hint {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.signin-field-error {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: var(--brand-dark);
}

.signin-password {
    position: relative;
}

    .signin-password input {
        padding-right: 4rem;
    }

.signin-show {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.3rem 0.55rem;
    border: 0;
    border-radius: 0.4rem;
    background: none;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
}

    .signin-show:hover {
        color: var(--ink);
        background: #f1f5f9;
    }

.signin-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border: 0;
    border-radius: 0.55rem;
    background: var(--brand);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
    transition: background-color 120ms ease;
}

    .signin-submit:hover:not(:disabled) {
        background: var(--brand-dark);
        color: #fff;
    }

    .signin-submit:disabled {
        opacity: 0.8;
        cursor: progress;
    }

.signin-link {
    display: block;
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
}

    .signin-link:hover {
        color: var(--ink);
        text-decoration: underline;
    }

/* A finished step (link sent, password changed): an icon, a heading and the way on. */
.signin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: #ecfdf5;
    color: var(--done);
}

    .signin-icon svg {
        width: 1.5rem;
        height: 1.5rem;
    }

.signin-foot {
    margin-top: 3rem;
    font-size: 0.775rem;
    color: var(--faint);
    text-align: center;
}

.signin :focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

/* Phones and narrow windows: the form alone. */
@media (max-width: 860px) {
    .signin {
        grid-template-columns: 1fr;
    }

    .signin-brand {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .signin-field input,
    .signin-submit {
        transition: none;
    }

    .signin-route .route-dash {
        animation: none;
    }
}
