/*
 * The sign-in screens (admin and shop), ported from botique-backend's
 * pages/auth/login.blade.php so the two products' back-offices read as one.
 *
 * Plain CSS, not utilities: public/dist/css/app.css is a prebuilt, purged
 * Tailwind v3 artifact, and the split layout below must not depend on which
 * utilities happened to survive its purge.
 */

/* the guest layouts' <body>: the panel theme paints the page background in
   the brand colour and pads it, and this screen is edge-to-edge */
body.auth-page {
    padding: 0 !important;
    background: #FFFFFF;
}

/* Brand tokens, matching BoutiqueTheme's defaults. */
.auth {
    --ink: #131313;
    --accent: #FF3D77;
    --accent-strong: #E82F66;
    --line: #E5E5E5;
    --muted: #6B6B6B;
    --subtle: #8A8A8A;
    --radius: 8px;

    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    background: #FFFFFF;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
}

.auth__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.auth__form {
    width: 100%;
    max-width: 380px;
}

.auth__eyebrow {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
}

.auth__compact-name {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.auth__compact-rule {
    width: 44px;
    height: 3px;
    border-radius: 999px;
    background: var(--accent);
    margin-top: 14px;
}

.auth__compact-brand {
    margin-bottom: 40px;
}

.auth__heading {
    margin-bottom: 32px;
}

.auth__heading h1 {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
}

.auth__heading p {
    font-size: 14px;
    color: var(--subtle);
    margin: 6px 0 0;
}

.auth__field {
    margin-bottom: 20px;
}

.auth__field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 8px;
}

.auth__input-wrap {
    position: relative;
}

.auth__input {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    color: var(--ink);
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.auth__input--has-affix {
    padding-right: 44px;
}

.auth__input::placeholder {
    color: #C4C4C4;
}

.auth__input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 61, 119, 0.12);
}

.auth__reveal {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: none;
    border: none;
    color: #A8A8A8;
    cursor: pointer;
    transition: color .15s ease;
}

.auth__reveal:hover {
    color: var(--muted);
}

.auth__reveal svg {
    width: 18px;
    height: 18px;
}

.auth__error {
    display: block;
    font-size: 12px;
    color: #E02424;
    margin-top: 6px;
}

.auth__remember {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
    cursor: pointer;
    margin-bottom: 28px;
}

/* The theme sets `appearance: none` on checkboxes globally, which makes
   accent-color a no-op - so the box and its tick are drawn here rather than
   left to the browser, which rendered it in its own default blue. */
.auth__remember input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex: none;
    width: 16px;
    height: 16px;
    margin: 0;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.auth__remember input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.auth__remember input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4.5px;
    top: 1.5px;
    width: 4px;
    height: 8px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.auth__remember input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.auth__submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    background: var(--accent);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color .15s ease;
}

.auth__submit:hover {
    background: var(--accent-strong);
}

.auth__submit:disabled {
    opacity: .7;
    cursor: default;
}

.auth__submit-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth__submit-loading svg {
    width: 16px;
    height: 16px;
    fill: #FFFFFF;
}

@media (prefers-reduced-motion: no-preference) {
    .auth__submit-loading svg {
        animation: auth-spin 1s linear infinite;
    }
}

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

.auth__legal {
    text-align: center;
    font-size: 12px;
    color: #B0B0B0;
    margin: 32px 0 0;
}

.auth__brand {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    padding: 48px 56px;
    background: var(--ink);
}

.auth__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(760px circle at 78% 8%, rgba(255, 61, 119, 0.16), transparent 62%);
}

.auth__brand-top,
.auth__brand-mid,
.auth__stats {
    position: relative;
}

.auth__eyebrow--onDark {
    letter-spacing: 0.2em;
}

.auth__wordmark {
    font-size: clamp(44px, 4.4vw, 68px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.02;
    color: #FFFFFF;
    overflow-wrap: anywhere;
}

.auth__rule {
    width: 56px;
    height: 3px;
    border-radius: 999px;
    background: var(--accent);
    margin: 24px 0 28px;
}

.auth__tagline {
    font-size: 15px;
    line-height: 1.6;
    max-width: 24rem;
    color: rgba(255, 255, 255, 0.62);
    margin: 0;
}

.auth__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth__stat-value {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}

.auth__stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 4px;
}

/* Last in the sheet on purpose: these override base rules declared above at
   the same specificity, so source order is what decides the winner. */
@media (min-width: 1024px) {
    .auth {
        grid-template-columns: 1fr 1fr;
    }

    .auth__compact-brand {
        display: none;
    }

    .auth__brand {
        display: flex;
    }
}

/* Additions for this project's flows: the forgot-password link, the
   "which shop?" picker and the reset flow's secondary action. */
.auth__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
}

.auth__row .auth__remember {
    margin-bottom: 0;
}

.auth__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color .15s ease;
}

.auth__link:hover {
    color: var(--accent);
}

.auth__link--block {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 16px;
}

.auth__choice {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    color: var(--ink);
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color .15s ease;
}

.auth__choice:hover {
    border-color: var(--accent);
}

.auth__notice {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 20px;
}

.auth__notice--ok {
    padding: 11px 14px;
    color: #03543F;
    background: #F3FAF7;
    border: 1px solid #BCF0DA;
    border-radius: var(--radius);
}

.auth__notice--bad {
    padding: 11px 14px;
    color: #9B1C1C;
    background: #FDF2F2;
    border: 1px solid #F8B4B4;
    border-radius: var(--radius);
}
