body.photographe-public-auth-page {
    display: flex;
    flex-direction: column;
}

body.photographe-public-auth-page .photographe-login-shell,
body.photographe-public-auth-page .photographe-forgot-shell,
body.photographe-public-auth-page .photographe-reset-shell {
    min-height: auto;
    flex: 1 0 auto;
    padding-top: 32px;
    padding-bottom: 32px;
}

.photographe-public-auth-footer {
    flex-shrink: 0;
}

.photographe-public-auth-footer.footer {
    padding: 56px 0 40px;
    border-top: 1px solid color-mix(in srgb, var(--photographe-border) 60%, white);
    background: color-mix(in srgb, var(--photographe-surface-page) 96%, white);
}

.photographe-public-auth-footer .container {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.photographe-public-auth-footer .footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.photographe-public-auth-footer .footer-brand img {
    display: block;
    width: auto;
    height: 22px;
    margin-bottom: 14px;
}

.photographe-public-auth-footer .footer-brand p {
    margin: 0;
    color: var(--photographe-text-muted);
    font-size: 15px;
    line-height: 1.7;
    max-width: 420px;
}

.photographe-public-auth-footer .footer-col h4 {
    margin: 0 0 12px;
    color: var(--photographe-text-title);
    font-size: 15px;
    font-weight: 800;
}

.photographe-public-auth-footer .footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.photographe-public-auth-footer .footer-col a {
    color: var(--photographe-text-body);
    font-size: 15px;
    line-height: 1.6;
    text-decoration: none;
    transition: color .2s ease;
}

.photographe-public-auth-footer .footer-col a:hover,
.photographe-public-auth-footer .footer-col a:focus-visible {
    color: var(--photographe-brand-strong);
    outline: none;
}

.photographe-public-auth-footer .footer-bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid color-mix(in srgb, var(--photographe-border) 72%, white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.photographe-public-auth-footer .footer-bottom span {
    color: var(--photographe-text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.cmp-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 1350;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.cmp-banner__content {
    width: min(1100px, 100%);
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.94);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    color: #f8fafc;
    pointer-events: auto;
    backdrop-filter: blur(16px);
}

.cmp-banner__content p {
    margin: 0;
    max-width: 700px;
    color: rgba(248, 250, 252, 0.96);
    font-size: 15px;
    line-height: 1.55;
    font-weight: 500;
}

.cmp-banner__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

.cmp-btn {
    appearance: none;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

.cmp-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.cmp-btn--ghost {
    background: rgba(255, 255, 255, 0.08);
}

.cmp-btn--primary {
    background: #f8fafc;
    border-color: #f8fafc;
    color: #0f172a;
}

.cmp-btn--primary:hover {
    background: #ffffff;
    color: #020617;
}

.cmp-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.cmp-modal[hidden] {
    display: none;
}

.cmp-modal.is-visible {
    opacity: 1;
}

.cmp-modal.is-closing {
    opacity: 0;
}

.cmp-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(4px);
}

.cmp-modal__panel {
    position: relative;
    width: min(620px, calc(100vw - 32px));
    margin: 12vh auto 0;
    background: #fff;
    border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--photographe-border) 78%, white);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
    overflow: hidden;
    transform: translateY(22px);
    opacity: 0;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.cmp-modal.is-visible .cmp-modal__panel {
    transform: translateY(0);
    opacity: 1;
}

.cmp-modal__header,
.cmp-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
}

.cmp-modal__header {
    border-bottom: 1px solid color-mix(in srgb, var(--photographe-border) 72%, white);
    background: linear-gradient(180deg, color-mix(in srgb, var(--photographe-brand-soft) 20%, white) 0%, #ffffff 100%);
}

.cmp-modal__header h2 {
    margin: 0;
    color: var(--photographe-text-title);
    font-size: 20px;
    font-weight: 800;
}

.cmp-modal__close {
    appearance: none;
    min-width: 40px;
    min-height: 40px;
    border: 1px solid color-mix(in srgb, var(--photographe-border) 78%, white);
    border-radius: 999px;
    background: #fff;
    color: var(--photographe-text-body);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.cmp-modal__intro,
.cmp-modal__body {
    padding-left: 20px;
    padding-right: 20px;
}

.cmp-modal__intro {
    padding-top: 18px;
}

.cmp-modal__intro p {
    margin: 0;
    color: var(--photographe-text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.cmp-modal__body {
    display: grid;
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 20px;
}

.cmp-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--photographe-border) 72%, white);
    border-radius: 18px;
    background: color-mix(in srgb, var(--photographe-surface-card) 88%, white);
}

.cmp-toggle strong {
    display: block;
    margin-bottom: 4px;
    color: var(--photographe-text-title);
    font-size: 15px;
}

.cmp-toggle small {
    display: block;
    color: var(--photographe-text-muted);
    font-size: 13px;
    line-height: 1.45;
}

.cmp-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--photographe-brand-strong);
}

.cmp-modal__footer {
    border-top: 1px solid color-mix(in srgb, var(--photographe-border) 72%, white);
    justify-content: flex-end;
}

.cmp-modal-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .photographe-public-auth-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    body.photographe-public-auth-page .photographe-login-shell,
    body.photographe-public-auth-page .photographe-forgot-shell,
    body.photographe-public-auth-page .photographe-reset-shell {
        min-height: auto;
        padding-top: 20px;
        padding-bottom: 24px;
    }

    .photographe-public-auth-footer.footer {
        padding: 40px 0 32px;
    }

    .photographe-public-auth-footer .container {
        padding: 0 18px;
    }

    .photographe-public-auth-footer .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .cmp-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .cmp-banner__content {
        min-height: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
        border-radius: 18px;
    }

    .cmp-banner__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .cmp-modal__panel {
        width: calc(100vw - 24px);
        margin-top: 10vh;
    }

    .cmp-modal__footer {
        flex-wrap: wrap;
    }
}
