/* The sign-in page. Stands on its own: it loads the brand tokens and this sheet, not the app theme. */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    height: 100%;
}

body {
    --wdl-ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
    background: var(--wd-white);
    color: var(--wd-neutral-800);
    font: 400 15px/1.55 var(--wd-font-sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

[v-cloak] {
    display: none;
}

/* The legal line below the form carries the notice Google asks for instead. */
.grecaptcha-badge {
    visibility: hidden;
}

.wdl-page {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 440px) 1fr;
    column-gap: clamp(24px, 4vw, 80px);
    padding: 44px clamp(24px, 6vw, 112px);
    align-items: center;
}

.wdl-page::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        60% 70% at 72% 55%,
        rgba(var(--wd-blue-20-rgb), 0.6),
        rgba(var(--wd-blue-20-rgb), 0) 70%
    );
}

/* ---------- left column ---------- */
.wdl-side {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 88px);
    animation: wdl-settle 0.7s var(--wdl-ease-out) both;
}

@keyframes wdl-settle {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

.wdl-lockup {
    display: flex;
    align-items: center;
    gap: 22px;
}

.wdl-lockup__wd {
    height: 48px;
    width: auto;
}

.wdl-lockup__rule {
    flex: none;
    width: 1px;
    height: 40px;
    background: var(--wd-neutral-200);
}

.wdl-lockup__avista {
    height: 36px;
    width: auto;
}

.wdl-stage {
    margin: auto 0;
    padding: 48px 0;
    max-width: 410px;
    display: grid;
}

.wdl-panel {
    grid-area: 1 / 1;
    transition:
        opacity 0.35s var(--wdl-ease-out),
        transform 0.35s var(--wdl-ease-out),
        visibility 0.35s;
}

.wdl-panel[aria-hidden='true'] {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    visibility: hidden;
}

.wdl-title {
    margin: 0 0 12px;
    font-size: 40px;
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--wd-dark-blue);
}

.wdl-lead {
    margin: 0 0 32px;
    font-size: 17px;
    color: var(--wd-neutral-600);
    max-width: 36ch;
}

.wdl-lead strong {
    color: var(--wd-neutral-900);
    font-weight: 500;
    overflow-wrap: anywhere;
}

.wdl-label {
    display: block;
    font-weight: 500;
    color: var(--wd-neutral-900);
    margin-bottom: 8px;
}

.wdl-input {
    position: relative;
}

.wdl-input svg {
    position: absolute;
    left: 15px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    stroke: var(--wd-neutral-550);
    transition: stroke 0.2s;
}

.wdl-input input {
    width: 100%;
    height: 54px;
    padding: 0 16px 0 46px;
    font: inherit;
    font-size: 17px;
    color: var(--wd-neutral-900);
    background: var(--wd-white);
    border: 1px solid var(--wd-neutral-300);
    border-radius: 6px;
    box-shadow: var(--wd-shadow-sm);
    transition:
        border-color 0.2s,
        box-shadow 0.25s;
}

.wdl-input input:hover {
    border-color: var(--wd-neutral-600);
}

.wdl-input input:focus {
    outline: none;
    border-color: var(--wd-blue);
    box-shadow: 0 0 0 4px rgba(var(--wd-blue-rgb), 0.16);
}

.wdl-input:focus-within svg {
    stroke: var(--wd-blue);
}

.wdl-input input[aria-invalid='true'] {
    border-color: var(--wd-red);
}

.wdl-error {
    margin: 8px 0 0;
    color: var(--wd-red);
    font-size: 14px;
}

.wdl-error--form {
    margin: -12px 0 16px;
}

.wdl-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 18px 0 28px;
    color: var(--wd-neutral-600);
    cursor: pointer;
}

.wdl-check input {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--wd-blue);
}

.wdl-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 54px;
    padding: 0 24px;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        transform 0.2s var(--wdl-ease-out),
        box-shadow 0.25s var(--wdl-ease-out),
        opacity 0.2s;
}

.wdl-btn:focus-visible {
    outline: 2px solid var(--wd-blue);
    outline-offset: 3px;
}

.wdl-btn--primary {
    width: 100%;
    color: var(--wd-white);
    background-color: var(--wd-primary);
    background-image: linear-gradient(180deg, var(--wd-blue), var(--wd-primary-hover));
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, var(--wd-white) 18%, transparent),
        0 1px 2px rgba(var(--wd-dark-blue-rgb), 0.25);
}

.wdl-btn--primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, var(--wd-white) 18%, transparent),
        0 8px 20px -6px rgba(var(--wd-blue-rgb), 0.55);
}

.wdl-btn--primary:active {
    transform: translateY(0);
}

.wdl-btn--primary:disabled {
    cursor: default;
    opacity: 0.55;
}

.wdl-btn--primary[data-busy='true'] {
    cursor: progress;
    opacity: 1;
}

.wdl-spinner {
    width: 18px;
    height: 18px;
    display: none;
    animation: wdl-spin 0.9s linear infinite;
}

.wdl-btn[data-busy='true'] .wdl-spinner {
    display: block;
}

@keyframes wdl-spin {
    to {
        transform: rotate(360deg);
    }
}

.wdl-btn--secondary {
    background: var(--wd-white);
    color: var(--wd-blue);
    border-color: var(--wd-neutral-300);
    gap: 0.3em;
}

.wdl-btn--secondary:hover:not(:disabled) {
    border-color: var(--wd-blue);
}

.wdl-btn--secondary:disabled {
    cursor: default;
    color: var(--wd-neutral-550);
    background: var(--wd-neutral-50);
    border-color: var(--wd-neutral-200);
}

.wdl-btn__progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    background: var(--wd-blue-40);
    transition: width 1s linear;
}

.wdl-link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--wd-blue);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--wd-blue-40);
}

.wdl-link:hover {
    color: var(--wd-primary-hover);
    text-decoration-color: currentColor;
}

.wdl-link:focus-visible {
    outline: 2px solid var(--wd-blue);
    outline-offset: 2px;
}

.wdl-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
}

.wdl-hint {
    margin: 26px 0 0;
    color: var(--wd-neutral-550);
    font-size: 14px;
}

.wdl-countdown {
    font-variant-numeric: tabular-nums;
}

.wdl-signal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--wd-neutral-600);
    font-size: 14px;
}

.wdl-signal i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wd-blue);
    animation: wdl-ping 1.8s var(--wdl-ease-out) infinite;
}

.wdl-signal--red i {
    background: var(--wd-red);
    animation: none;
}

@keyframes wdl-ping {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--wd-blue-rgb), 0.45);
    }
    70%,
    100% {
        box-shadow: 0 0 0 9px rgba(var(--wd-blue-rgb), 0);
    }
}

.wdl-legal {
    font-size: 12.5px;
    color: var(--wd-neutral-550);
    max-width: 410px;
    margin: 0;
}

.wdl-legal a {
    color: inherit;
}

/* ---------- right: the scene ---------- */
.wdl-scene {
    position: relative;
    z-index: 0;
    width: 100%;
    max-width: 900px;
    justify-self: center;
    margin: 0;
}

.wdl-scene svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.wdl-scene .lbl,
.wdl-scene .sub {
    paint-order: stroke;
    stroke: var(--wd-white);
    stroke-width: 5px;
    stroke-linejoin: round;
}

.wdl-scene .lbl {
    font: 500 17px var(--wd-font-sans);
    fill: var(--wd-dark-blue);
}

.wdl-scene .sub {
    font: 400 14px var(--wd-font-sans);
    fill: var(--wd-neutral-600);
}

.wdl-scene .decal {
    font-family: var(--wd-font-sans);
    font-weight: 700;
}

.wdl-scene__plate-shadow {
    fill: var(--wd-dark-blue);
}

.wdl-scene__grid {
    fill: var(--wd-neutral-300);
}

.wdl-scene__line {
    stroke: var(--wd-blue-60);
}

.wdl-scene__flow {
    stroke: var(--wd-white);
}

.wdl-scene__drop-stop {
    stop-color: var(--wd-brown);
}

@media (max-width: 1000px) {
    .wdl-page {
        grid-template-columns: 1fr;
        padding: 24px 16px 40px;
        align-items: start;
    }

    .wdl-page::before {
        background: radial-gradient(
            90% 40% at 50% 0%,
            rgba(var(--wd-blue-20-rgb), 0.6),
            rgba(var(--wd-blue-20-rgb), 0) 70%
        );
    }

    .wdl-side {
        min-height: calc(100vh - 64px);
    }

    .wdl-lockup {
        gap: 16px;
    }

    /* Sized by width so both logos and the rule fit a 320px screen. */
    .wdl-lockup__wd {
        width: min(170px, 43vw);
        height: auto;
    }

    .wdl-lockup__avista {
        width: min(142px, 35vw);
        height: auto;
    }

    .wdl-stage {
        padding: 56px 0 40px;
    }

    .wdl-title {
        font-size: 34px;
    }

    .wdl-scene {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
