/* Auth registrace / přihlášení – nezávislé na Vite buildu */
body.auth-body {
    margin: 0;
    overflow-x: hidden;
}

.auth-page {
    display: flex;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    flex-direction: column;
    background-color: #fff;
}

.auth-shell {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    box-sizing: border-box;
}

.auth-layout {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    min-height: 0;
    background-color: #fff;
}

.auth-layout__form {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
}

.auth-layout__form-inner {
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.auth-layout__form input:not([type='checkbox']):not([type='radio']) {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Zapamatovat přihlášení – checkbox + text v jedné řádce */
.auth-layout__form .auth-remember {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.625rem !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0.375rem 0 0.625rem !important;
    padding: 0 !important;
    text-align: left !important;
    cursor: pointer;
    user-select: none;
}

.auth-layout__form .auth-remember input[type='checkbox'] {
    display: inline-block !important;
    flex: 0 0 1.125rem !important;
    width: 1.125rem !important;
    height: 1.125rem !important;
    min-width: 1.125rem !important;
    max-width: 1.125rem !important;
    min-height: 1.125rem !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle;
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: checkbox;
    accent-color: #1c2630;
}

.auth-layout__form .auth-remember__text {
    display: inline !important;
    flex: 0 1 auto;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #354656;
    white-space: nowrap;
}

/* Souhlas s podmínkami – checkbox + víceřádkový text s odkazy */
.auth-layout__form .auth-consent {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0.625rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.25rem 0 0 !important;
    padding: 0 !important;
    text-align: left !important;
    cursor: pointer;
    user-select: none;
}

.auth-layout__form .auth-consent input[type='checkbox'] {
    display: inline-block !important;
    flex: 0 0 1.125rem !important;
    width: 1.125rem !important;
    height: 1.125rem !important;
    min-width: 1.125rem !important;
    max-width: 1.125rem !important;
    min-height: 1.125rem !important;
    margin: 0.125rem 0 0 !important;
    padding: 0 !important;
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: checkbox;
    accent-color: #1c2630;
}

.auth-layout__form .auth-consent__text {
    display: block !important;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.8125rem;
    line-height: 1.375rem;
    color: #354656;
    white-space: normal;
}

.auth-layout__form .auth-consent__link {
    font-weight: 600;
    color: #1c2630;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-layout__form .auth-consent__link:hover {
    color: #121a22;
}

.auth-layout__slides {
    display: none;
}

.auth-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.75rem 1.5rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
    box-sizing: border-box;
}

.auth-slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 1;
}

.auth-slide.hidden {
    display: none !important;
}

.auth-slides-track {
    position: relative;
    flex: 1;
    overflow: hidden;
    min-height: 280px;
}

.auth-slides-footer {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgb(255 255 255 / 0.1);
    padding: 0.75rem 1.5rem;
}

.auth-dot {
    height: 6px;
    width: 6px;
    border-radius: 9999px;
    border: none;
    padding: 0;
    background-color: rgb(255 255 255 / 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-dot.is-active {
    width: 24px;
    background-color: #f59e0b;
}

.auth-form-row {
    display: grid;
    gap: 0.875rem;
}

@media (min-width: 480px) {
    .auth-form-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    .auth-layout {
        flex-direction: row;
        min-height: calc(100vh - 73px);
    }

    .auth-layout__form {
        flex: 0 0 50%;
        width: 50%;
        max-width: none;
        min-width: 0;
        padding: 3rem 4rem;
        border-right: 1px solid #e8ecf0;
    }

    .auth-layout__form-inner {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .auth-layout__slides {
        display: flex;
        flex: 1;
        flex-direction: column;
        min-width: 0;
        background: linear-gradient(to bottom right, #1c2630, #1c2630, #121a22);
    }

    .auth-slide {
        padding: 2.5rem 4rem;
    }

    .auth-slide h2 {
        font-size: 2rem;
        line-height: 1.2;
    }
}

@media (min-width: 1280px) {
    .auth-layout__form {
        padding: 4rem 6rem;
    }

    .auth-layout__form-inner {
        max-width: 560px;
    }

    .auth-slide {
        padding: 3rem 6rem;
    }

    .auth-slide h2 {
        font-size: 2.5rem;
    }

    .auth-slides-footer {
        padding: 1rem 3rem;
    }
}
