/* The main site's sign-in pages (central/sign-in/*, ADR 0001), in the site-wide
   sign-in design: the shop's own (css/auth.css). Only what that design didn't
   need: a second link beside "Forgot password?", the chooser, and right to left.
   Its own variables throughout, so light and dark follow it. */

.auth-page .form-meta.si-links {
    justify-content: space-between;
}

/* The card's logo swaps to the dark-mode logo as the panel's does */
.si-brand .auth-logo-dark,
html.auth-dark .si-brand.has-dark .auth-logo-light {
    display: none;
}

html.auth-dark .si-brand.has-dark .auth-logo-dark {
    display: block;
    padding: 0;
    background: none;
}

html.auth-dark .si-brand:not(.has-dark) .auth-logo-light {
    padding: 6px 10px;
    border-radius: 12px;
    background: #fff;
}

.si-choices {
    display: grid;
    gap: 10px;
}

.si-choice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    height: 48px;
    padding: 0 18px;
    border: 1px solid var(--auth-border-strong);
    border-radius: 999px;
    background: var(--auth-input);
    color: var(--auth-text);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: start;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.si-choice:hover {
    border-color: var(--auth-accent);
}

.si-choice:focus-visible {
    outline: none;
    border-color: var(--auth-accent);
    box-shadow: var(--auth-focus);
}

.si-choice svg {
    flex: none;
    width: 16px;
    height: 16px;
    stroke: var(--auth-muted);
}

/* The main sign-in's hero, laid out like Rio's reference (2026-10-13): a headline and
   a sourced quote in the middle of the space, the clients who agreed to be shown at
   the bottom (showcase.blade.php). On-navy roles: headings pale mint, copy mint at
   72%, the accent green #66d097. */
.auth-hero.si-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
}

.auth-page .si-showcase {
    gap: 28px;
    max-width: 500px;
    margin-block: auto;
}

.auth-page .si-headline {
    margin: 0;
    font-size: clamp(2.1rem, 3.4vw, 2.9rem);
    font-weight: 600;
    line-height: 1.15;
}

.si-quote {
    margin: 0;
}

.si-quote__text {
    position: relative;
    margin: 0;
    padding-inline-start: 34px;
}

.si-quote__text::before {
    content: "\201C";
    position: absolute;
    top: -10px;
    inset-inline-start: 0;
    color: #66d097;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.si-quote__text p {
    margin: 0;
    color: var(--auth-on-dark);
    font-size: clamp(0.98rem, 0.6rem + 0.55vw, 1.12rem);
    line-height: 1.65;
}

.si-quote__text[lang="en"] p::before {
    content: "\201C";
}

.si-quote__text[lang="en"] p::after {
    content: "\201D";
}

/* The author: initials in a green circle (no photos: image rights), then the name, the
   role and the source */
.si-quote__by {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding-inline-start: 34px;
    color: var(--auth-on-dark-text);
    font-size: 0.85rem;
    line-height: 1.5;
}

.si-quote__avatar {
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 2px solid rgba(216, 246, 238, 0.85);
    border-radius: 50%;
    background: #61ce70;
    color: #151e31;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.si-quote__who {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.si-quote__author {
    color: var(--auth-on-dark);
    font-size: 0.95rem;
    font-weight: 600;
}

.si-quote__source {
    font-style: normal;
    font-size: 0.8rem;
}

.si-quote__note {
    font-size: 0.78rem;
}

/* The quotes share one cell: the tallest sets the height, so nothing below moves when
   the next one fades in (sign-in-quotes.js, every 7 seconds). A hidden quote is out
   of the accessibility tree too. */
.si-quotes {
    position: relative;
    display: grid;
    margin-top: 10px;
}

.si-quotes > .si-quote {
    grid-area: 1 / 1;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

.si-quotes > .si-quote.is-current {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0s;
}

/* Room for the pause button beside the quote's first line, in the page's direction
   (an English quote on an Arabic page is left to right itself) */
.si-quotes {
    padding-inline-end: 48px;
}

/* Pause and play (WCAG 2.2.2: what updates by itself can be stopped) */
.si-quotes__pause {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(238, 255, 250, 0.24);
    border-radius: 999px;
    background: transparent;
    color: var(--auth-on-dark-text);
    cursor: pointer;
}

.si-quotes__pause:hover {
    border-color: rgba(238, 255, 250, 0.5);
    color: var(--auth-on-dark);
}

.si-quotes__pause:focus-visible {
    outline: 2px solid #66d097;
    outline-offset: 2px;
}

.si-quotes__pause svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.si-quotes__icon-play,
.si-quotes__pause[aria-pressed="true"] .si-quotes__icon-pause {
    display: none;
}

.si-quotes__pause[aria-pressed="true"] .si-quotes__icon-play {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .si-quotes > .si-quote,
    .si-quotes > .si-quote.is-current {
        transition: none;
    }
}

.si-clients {
    position: relative;
    z-index: 1;
}

.si-clients__label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    color: var(--auth-on-dark-text);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.si-clients__label::after {
    content: "";
    flex: 1;
    border-top: 1px solid rgba(238, 255, 250, 0.18);
}

.si-clients__logos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 24px;
    align-items: center;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.si-clients__logos img {
    display: block;
    max-width: 100%;
    max-height: 28px;
    margin-inline: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.82;
}

/* Right to left: the field's padding, the alert's list and the chevron swap sides */
[dir="rtl"] .auth-page .input-shell {
    padding: 0 18px 0 8px;
}

[dir="rtl"] .auth-alert ul {
    padding-left: 0;
    padding-right: 1.1rem;
}

[dir="rtl"] .si-choice svg {
    transform: scaleX(-1);
}
