/* Super Shop — Split login (photo + form) */

:root {
    --ss-login-primary: #059669;
    --ss-login-primary-dark: #047857;
    --ss-login-panel: #065f46;
    --ss-login-panel-deep: #064e3b;
    --ss-login-form-width: 360px;
    --ss-login-input-height: 50px;
}

.ss-login-shell {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: var(--ss-login-panel-deep);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Left — hero photo (clean, no text overlay) */
.ss-login-visual {
    position: relative;
    min-height: 100dvh;
    overflow: hidden;
    isolation: isolate;
    background: #1a1510;
    animation: ssLoginRevealLeft 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ss-login-visual-media {
    position: absolute;
    top: -5%;
    right: -8%;
    bottom: -5%;
    left: -12%;
    transform: scale(1.06) translateX(11%);
    animation: ssLoginPhotoIn 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ss-login-visual-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 34% center;
    filter: saturate(1.08) contrast(1.06) brightness(0.94);
}

.ss-login-visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 78, 59, 0.04) 0%, rgba(6, 78, 59, 0.12) 55%, rgba(6, 78, 59, 0.52) 92%, rgba(6, 78, 59, 0.68) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 38%, rgba(15, 23, 42, 0.18) 100%);
    pointer-events: none;
    animation: ssLoginFadeIn 1s ease 0.35s both;
}

.ss-login-visual-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 85% 75% at 62% 50%, transparent 35%, rgba(15, 23, 42, 0.35) 100%);
    pointer-events: none;
    animation: ssLoginFadeIn 1.1s ease 0.45s both;
}

.ss-login-visual-edge {
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06));
    pointer-events: none;
    animation: ssLoginFadeIn 0.8s ease 0.55s both;
}

/* Right — login panel */
.ss-login-form-area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(165deg, var(--ss-login-panel) 0%, var(--ss-login-panel-deep) 100%);
    animation: ssLoginRevealRight 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.ss-login-panel {
    width: var(--ss-login-form-width);
    max-width: 100%;
    flex-shrink: 0;
}

.ss-login-panel-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    animation: ssLoginFormItem 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.ss-login-panel-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    padding: 6px;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.ss-login-panel-mark {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.15rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.ss-login-panel-shop {
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.25;
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.ss-login-panel-head {
    display: none;
}

.ss-login-footer {
    margin: 1.5rem 0 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    animation: ssLoginFormItem 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.82s both;
}

/* Filament form — fixed width on every branch */
.ss-login-form,
.ss-login-form .fi-form,
.ss-login-form .fi-fo-component-ctn,
.ss-login-form .fi-fo-field-wrp {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.ss-login-shell .fi-simple-page {
    gap: 0;
    width: 100%;
    max-width: 100%;
}

.ss-login-shell .fi-simple-main {
    padding: 0;
}

.ss-login-shell .fi-simple-header {
    align-items: flex-start;
    margin-bottom: 1.75rem;
    animation: ssLoginFormItem 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.ss-login-shell .fi-simple-header-heading {
    font-size: clamp(1.65rem, 2.5vw, 2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.ss-login-shell .fi-simple-header-subheading {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
    text-align: left;
}

.ss-login-shell .fi-fo-field-wrp-label span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.ss-login-shell .fi-fo-field-wrp {
    margin-bottom: 0.15rem;
    animation: ssLoginFormItem 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ss-login-shell .ss-login-form .fi-fo-field-wrp:nth-child(1) {
    animation-delay: 0.38s;
}

.ss-login-shell .ss-login-form .fi-fo-field-wrp:nth-child(2) {
    animation-delay: 0.5s;
}

.ss-login-shell .ss-login-form .fi-fo-field-wrp:nth-child(3) {
    animation-delay: 0.62s;
}

.ss-login-shell .fi-fo-checkbox-list {
    margin-top: 0.35rem;
}

.ss-login-shell .fi-input-wrp {
    width: 100% !important;
    min-height: var(--ss-login-input-height);
    height: var(--ss-login-input-height);
    border-radius: 999px !important;
    overflow: hidden;
    background: #fff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    box-sizing: border-box;
}

.ss-login-shell .fi-input-wrp input {
    width: 100% !important;
    height: var(--ss-login-input-height);
    min-height: var(--ss-login-input-height);
    font-size: 0.9375rem;
    color: #0f172a;
    background: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding-left: 1.1rem !important;
    padding-right: 1.1rem !important;
    box-sizing: border-box;
}

.ss-login-shell .fi-input-wrp input::placeholder {
    color: #94a3b8;
}

.ss-login-shell .fi-input-wrp:focus-within {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28), 0 4px 14px rgba(15, 23, 42, 0.14);
}

.ss-login-shell .fi-input-wrp-suffix {
    color: #64748b;
}

.ss-login-shell .fi-fo-checkbox-list label,
.ss-login-shell .fi-checkbox-input + span {
    color: rgba(255, 255, 255, 0.82) !important;
}

.ss-login-shell .fi-link {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.8125rem;
    font-weight: 600;
}

.ss-login-shell .fi-link:hover {
    color: #fff !important;
}

.ss-login-shell .fi-form-actions {
    margin-top: 0.85rem;
    width: 100%;
    animation: ssLoginFormItem 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.72s both;
}

.ss-login-shell .fi-form-actions .fi-btn {
    width: 100%;
}

.ss-login-shell .fi-btn-primary {
    width: 100%;
    min-height: var(--ss-login-input-height);
    height: var(--ss-login-input-height);
    border-radius: 999px !important;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #d4a853 0%, #c9983f 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.ss-login-shell .fi-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28) !important;
    background: linear-gradient(135deg, #ddb965 0%, #d4a853 100%) !important;
}

@keyframes ssLoginRevealLeft {
    from {
        opacity: 0;
        transform: translateX(-48px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ssLoginPhotoIn {
    from {
        opacity: 0;
        transform: scale(1.14) translateX(calc(11% - 36px));
        filter: saturate(0.92) contrast(1.02) brightness(0.88);
    }
    to {
        opacity: 1;
        transform: scale(1.06) translateX(11%);
        filter: saturate(1.08) contrast(1.06) brightness(0.94);
    }
}

@keyframes ssLoginRevealRight {
    from {
        opacity: 0;
        transform: translateX(48px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ssLoginFormItem {
    from {
        opacity: 0;
        transform: translateX(32px);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@keyframes ssLoginFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ss-login-visual,
    .ss-login-visual-media,
    .ss-login-visual-overlay,
    .ss-login-visual-vignette,
    .ss-login-visual-edge,
    .ss-login-form-area,
    .ss-login-panel-brand,
    .ss-login-shell .fi-simple-header,
    .ss-login-shell .fi-fo-field-wrp,
    .ss-login-shell .fi-form-actions,
    .ss-login-footer {
        animation: none !important;
    }
}

/* Mobile — form only, no hero photo */
@media (max-width: 1023px) {
    .ss-login-shell {
        grid-template-columns: 1fr !important;
        grid-template-rows: 1fr;
        min-height: 100dvh;
    }

    .ss-login-visual {
        display: none !important;
    }

    .ss-login-form-area {
        min-height: 100dvh;
        flex: 1;
        align-items: center;
        justify-content: center;
        padding: 2rem 1.25rem max(1.5rem, env(safe-area-inset-bottom));
        animation: ssLoginRevealBottom 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .ss-login-panel {
        width: 100%;
        max-width: 400px;
    }

    .ss-login-panel-brand {
        justify-content: center;
        flex-direction: column;
        text-align: center;
        gap: 0.65rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1.1rem;
    }

    .ss-login-shell .fi-simple-header {
        align-items: center;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .ss-login-shell .fi-simple-header-heading {
        font-size: 1.75rem;
    }

    .ss-login-shell .fi-simple-header-subheading {
        text-align: center;
    }

    .ss-login-shell .fi-input-wrp,
    .ss-login-shell .fi-input-wrp input {
        height: var(--ss-login-input-height);
        min-height: var(--ss-login-input-height);
        font-size: 16px;
    }

    .ss-login-shell .fi-btn-primary {
        height: var(--ss-login-input-height);
        min-height: var(--ss-login-input-height);
    }

    .ss-login-shell .fi-btn-primary:hover {
        transform: none;
    }
}

@media (max-width: 380px) {
    .ss-login-form-area {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@keyframes ssLoginRevealTop {
    from {
        opacity: 0;
        transform: translateY(-28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ssLoginRevealBottom {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ssLoginPhotoInMobile {
    from {
        opacity: 0;
        transform: scale(1.14) translateX(calc(9% - 28px));
    }
    to {
        opacity: 1;
        transform: scale(1.1) translateX(9%);
    }
}
