/* Sign-in, two-step verification and password pages (_Layout_Account): the What's new gradient behind the
   old animated network (canvasbg.js), with the form on top. */

.auth-page {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-info) 100%) fixed;
}

.auth-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.auth-canvas canvas {
    display: block;
}

.auth-page > .position-relative {
    z-index: 1;
}

/* The collage of Arealy screens beside the form (_AuthShowcase). */
.auth-showcase {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 480px;
    margin-bottom: 3rem;
}

.auth-tile {
    position: absolute;
    animation: auth-float 6s ease-in-out infinite;
}

.auth-tile-calendar {
    top: 60px;
    left: 0;
    width: 58%;
}

.auth-tile-performance {
    top: 0;
    right: 0;
    width: 46%;
    animation-delay: -1.5s;
}

.auth-tile-today {
    top: 215px;
    right: 2%;
    width: 40%;
    animation-delay: -3s;
}

.auth-tile-owner {
    bottom: 0;
    left: 8%;
    width: 46%;
    animation-delay: -4.5s;
}

.auth-tile-booking {
    bottom: 30px;
    right: 0;
    width: 40%;
    animation-delay: -2s;
}

.auth-chart {
    display: block;
    width: 100%;
    height: auto;
}

.auth-chart-bar {
    fill: var(--bs-primary);
    opacity: .85;
}

.auth-chart-line {
    fill: none;
    stroke: var(--bs-warning);
    stroke-width: 2.5;
    stroke-linejoin: round;
}

.auth-chart-dot {
    fill: var(--bs-body-bg);
    stroke: var(--bs-warning);
    stroke-width: 2;
}

.auth-timeline {
    display: grid;
    grid-template-columns: 36px repeat(7, 1fr);
    gap: 4px;
    align-items: center;
}

.auth-bar {
    grid-row: 1;
    height: 24px;
    border-radius: .5rem;
    padding: 3px;
    display: flex;
}

.auth-bar img {
    height: 18px;
    width: 18px;
    border-radius: .35rem;
    background: #fff;
}

/* One box per digit of an authenticator code (_CodeInput). */
.auth-digit {
    flex: 1 1 0;
    min-width: 0;
    height: 60px;
    padding: 0;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.auth-code {
    font-family: SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .05em;
}

/* Slides in on arrival; shakes when the form comes back with an error. */
.auth-enter {
    animation: auth-slide-in .6s ease-out both;
}

.auth-shake {
    animation: auth-shake .6s ease-in-out both;
}

@keyframes auth-slide-in {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: none; }
}

@keyframes auth-float {
    0%, 100% { transform: none; }
    50% { transform: translateY(-8px); }
}

@keyframes auth-shake {
    0%, 100% { transform: none; }
    15%, 45%, 75% { transform: translateX(-8px); }
    30%, 60%, 90% { transform: translateX(8px); }
}

@media (prefers-reduced-motion: reduce) {
    .auth-enter,
    .auth-shake,
    .auth-tile {
        animation: none;
    }
}
