body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f7f8fb;
    color: #1f2937;
}

.page-main {
    flex: 1 0 auto;
}

body:not(.auth-page) .app-navbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.toast-stack {
    position: fixed;
    top: 92px;
    right: 22px;
    z-index: 1200;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 24px));
    pointer-events: none;
}

.toast-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 42px 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    color: #0f172a;
    backdrop-filter: blur(18px);
    pointer-events: auto;
    animation: toastSlideIn 0.28s ease forwards;
}

.toast-card--success {
    border-color: rgba(22, 163, 74, 0.18);
    background: rgba(240, 253, 244, 0.96);
}

.toast-card--danger {
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(254, 242, 242, 0.96);
}

.toast-card--warning {
    border-color: rgba(245, 158, 11, 0.2);
    background: rgba(255, 251, 235, 0.96);
}

.toast-card--info {
    border-color: rgba(14, 165, 233, 0.16);
    background: rgba(240, 249, 255, 0.96);
}

.toast-card__body {
    font-size: 0.94rem;
    line-height: 1.55;
}

.toast-card__close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 1.2rem;
    line-height: 1;
    padding: 2px 4px;
}

.toast-card__close:hover {
    color: #0f172a;
}

.toast-card--closing {
    animation: toastFadeOut 0.3s ease forwards;
}

.toast-stack--standalone {
    top: 18px;
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 1350;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner__card {
    width: min(100%, 1040px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(18px);
}

.cookie-banner__title {
    margin-bottom: 6px;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.cookie-banner__text {
    margin: 0;
    color: #475569;
    font-size: 0.94rem;
    line-height: 1.7;
}

.cookie-banner__text a {
    color: #0284c7;
    font-weight: 700;
    text-decoration: none;
}

.cookie-banner__text a:hover {
    text-decoration: underline;
}

.cookie-banner__accept {
    min-height: 48px;
    padding-inline: 20px;
    border-radius: 16px;
    white-space: nowrap;
}

.auth-page {
    --auth-nav-height: 93px;
    background: #ffffff;
    overflow-x: hidden;
}

body.auth-modal-open {
    overflow: hidden;
}

.auth-page .navbar {
    background: rgba(255, 255, 255, 0.78) !important;
    border-bottom: 0 !important;
    margin-bottom: 0 !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.auth-page .page-main > .container.pb-5 {
    width: 100%;
    max-width: none;
    padding: 0;
    display: flex;
    flex: 1 0 auto;
    min-width: 0;
    overflow: hidden;
}

.auth-page .page-main > .container.pb-5 > .auth-screen {
    flex: 1 0 auto;
    min-width: 0;
}

.auth-page .page-main > .container.pb-5 > .alert {
    width: min(calc(100% - 40px), 1560px);
    margin: 18px auto 0;
    border-radius: 18px;
}

.navbar-brand {
    font-weight: 700;
    padding-top: 0;
    padding-bottom: 0;
}

.brand-logo-link {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    display: block;
    max-width: 100%;
    height: auto;
}

.brand-logo--nav {
    width: auto;
    height: 72px;
    max-width: min(42vw, 320px);
    object-fit: contain;
}

.brand-logo--public {
    width: 100%;
    max-width: 420px;
    max-height: 240px;
    object-fit: contain;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.auth-nav-login-btn {
    display: inline-flex;
}

.public-nav-btn--active,
.public-nav-btn--active:hover {
    background: #0f172a;
    border-color: #0f172a;
    color: #f8fafc;
}

.nav-user-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
}

.nav-user-chip__meta {
    line-height: 1.15;
}

.nav-user-chip__name {
    font-size: 0.88rem;
    font-weight: 700;
}

.nav-user-chip__role {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.07);
}

.auth-screen {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    min-height: calc(100dvh - var(--auth-nav-height));
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(420px, 32vw, 540px);
    gap: 0;
    align-items: stretch;
    flex: 1 0 auto;
    min-height: 0;
    width: 100%;
    overflow: hidden;
}

.auth-showcase {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(340px, 1fr);
    gap: clamp(24px, 3vw, 44px);
    min-height: 100%;
    padding: clamp(36px, 4vw, 68px);
    border-radius: 0;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.88)),
        #0f172a;
    color: #f8fafc;
    box-shadow: inset -1px 0 0 rgba(125, 211, 252, 0.12);
}

.auth-support-band {
    position: relative;
    z-index: 2;
    margin-top: -56px;
    padding: 0 24px 34px;
}

.auth-support-band__inner {
    width: min(100%, 1680px);
    margin: 0 auto;
}

.auth-showcase__copy,
.auth-showcase__visual {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.auth-showcase__copy {
    display: grid;
    align-content: center;
    gap: 16px;
    max-width: 560px;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(125, 211, 252, 0.25);
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    color: #bae6fd;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-title {
    margin: 0;
    font-size: clamp(2.5rem, 4vw, 4.8rem);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.04em;
    max-width: 8ch;
}

.auth-description {
    margin: 0;
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 44ch;
}

.auth-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2px;
}

.auth-hero-pills span {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(186, 230, 253, 0.18);
    color: #e0f2fe;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-feature-list {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.auth-feature {
    padding: 18px 18px 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(12px);
}

.auth-feature__eyebrow {
    margin-bottom: 8px;
    color: #7dd3fc;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-feature__title {
    margin: 0 0 8px;
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.35;
}

.auth-feature__text {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 0.94rem;
}

.auth-feature--light {
    background: rgba(255, 255, 255, 0.74);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.auth-feature--light .auth-feature__title {
    color: #0f172a;
}

.auth-feature--light .auth-feature__text {
    color: #475569;
}

.auth-showcase__visual {
    display: grid;
    align-content: center;
    gap: 18px;
    min-height: 100%;
}

.auth-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(70px);
    pointer-events: none;
}

.auth-glow--one {
    top: -40px;
    right: 18px;
    width: 190px;
    height: 190px;
    background: rgba(56, 189, 248, 0.28);
}

.auth-glow--two {
    bottom: 22px;
    left: -18px;
    width: 220px;
    height: 220px;
    background: rgba(96, 165, 250, 0.24);
}

.auth-gallery {
    position: relative;
    display: grid;
    gap: 16px;
    padding: 0;
}

.auth-gallery__row {
    display: grid;
    gap: 16px;
    align-items: stretch;
}

.auth-gallery__row--1,
.auth-gallery__row--3 {
    grid-template-columns: minmax(0, 1.16fr) minmax(220px, 0.84fr);
}

.auth-gallery__row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-gallery-card {
    margin: 0;
    position: relative;
    min-height: 220px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 22px 38px rgba(2, 6, 23, 0.22);
    transform: translate3d(0, 0, 0) rotate(var(--auth-rotate, 0deg));
    animation: authFloat 9s ease-in-out infinite;
}

.auth-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.auth-gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.04) 35%, rgba(15, 23, 42, 0.7) 100%);
}

.auth-gallery-card figcaption {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 1;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f8fafc;
    font-size: 0.88rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.auth-gallery-card:hover {
    transform: translateY(-4px) rotate(var(--auth-rotate, 0deg));
}

.auth-gallery-card--wide {
    --auth-rotate: -3deg;
    min-height: 268px;
}

.auth-gallery-card--tall {
    --auth-rotate: 2.2deg;
    min-height: 268px;
}

.auth-gallery-card--medium {
    --auth-rotate: 1.8deg;
    min-height: 210px;
}

.auth-showcase__note {
    margin-top: 0;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.16);
}

.auth-showcase__note-label {
    margin-bottom: 6px;
    color: #7dd3fc;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-showcase__note-text {
    color: #e2e8f0;
    line-height: 1.65;
}

.auth-floating-note {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.14);
    border: 1px solid rgba(186, 230, 253, 0.24);
    color: #e0f2fe;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.18);
    animation: authDrift 11s ease-in-out infinite;
}

.auth-floating-note--one {
    top: 34px;
    left: -8px;
}

.auth-floating-note--two {
    right: 18px;
    top: 292px;
    animation-delay: -4s;
}

.auth-login-panel {
    display: flex;
    align-items: stretch;
    min-height: 100%;
    min-width: 0;
    padding: clamp(32px, 4vw, 56px) clamp(24px, 2.8vw, 40px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.94)),
        linear-gradient(180deg, transparent, rgba(56, 189, 248, 0.08));
    border-left: 1px solid rgba(148, 163, 184, 0.14);
}

.auth-login-column {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: grid;
    align-content: center;
    gap: 16px;
    min-width: 0;
    min-height: 100%;
}

.auth-login-cta {
    padding: 24px 24px 22px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.auth-login-cta__title {
    margin: 0 0 10px;
    font-size: 1.75rem;
    line-height: 1.08;
    font-weight: 800;
    color: #0f172a;
}

.auth-login-cta__text {
    margin: 0 0 18px;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.75;
}

.auth-login-cta__button {
    min-height: 50px;
    border-radius: 16px;
    padding-inline: 18px;
    font-weight: 700;
}

.auth-login-card {
    width: 100%;
    margin: 0;
    align-self: start;
    padding: 32px 30px 30px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(16px);
}

.auth-login-card__brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 14px;
}

.brand-logo--auth-modal {
    max-width: 240px;
    max-height: 145px;
}

.auth-login-card__tag {
    display: inline-block;
    margin-bottom: 8px;
    color: #0284c7;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-login-card__title {
    margin-bottom: 10px;
    font-size: 1.95rem;
    font-weight: 800;
}

.auth-login-card__subtitle {
    margin: 0 0 22px;
    color: #64748b;
    font-size: 0.98rem;
    line-height: 1.7;
}

.auth-login-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.auth-login-roles span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f8fbff;
    border: 1px solid #dbeafe;
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 700;
}

.auth-login-form .form-control {
    min-height: 54px;
    border-radius: 14px;
    border-color: #dbe2ea;
    padding-left: 14px;
    padding-right: 14px;
}

.auth-password-field {
    position: relative;
}

.auth-password-field .form-control {
    padding-right: 92px;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 44px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 163, 184, 0.14);
    color: #475569;
    transition: background 0.18s ease, color 0.18s ease;
}

.auth-password-toggle:hover {
    background: rgba(56, 189, 248, 0.14);
    color: #0f172a;
}

.auth-password-toggle:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.42);
    outline-offset: 2px;
}

.auth-password-toggle__icon {
    width: 18px;
    height: 18px;
}

.auth-password-toggle__icon--hide {
    display: none;
}

.auth-password-toggle[aria-pressed="true"] .auth-password-toggle__icon--show {
    display: none;
}

.auth-password-toggle[aria-pressed="true"] .auth-password-toggle__icon--hide {
    display: block;
}

.auth-login-form .form-control:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.15);
}

.auth-login-submit {
    min-height: 54px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
}

.auth-login-support {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.auth-login-support--band {
    align-items: stretch;
}

.auth-mobile-modal[hidden] {
    display: none !important;
}

.auth-mobile-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.auth-mobile-modal.is-open {
    opacity: 1;
}

.auth-mobile-modal__backdrop {
    position: absolute;
    inset: 0;
}

.auth-mobile-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 460px);
    transform: translateY(14px) scale(0.98);
    transition: transform 0.24s ease;
}

.auth-mobile-modal.is-open .auth-mobile-modal__dialog {
    transform: translateY(0) scale(1);
}

.auth-mobile-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    font-size: 1.75rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-mobile-modal__close:hover {
    background: rgba(15, 23, 42, 0.14);
}

.auth-login-card--mobile {
    margin: 0;
}

.auth-stat-row--compact {
    gap: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-column: 1 / -1;
}

.auth-stat-pill--light {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.05);
}

.auth-stat-pill--light strong {
    color: #0f172a;
}

.auth-stat-pill--light span {
    color: #475569;
}

.auth-showcase__note--light {
    margin-top: 2px;
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.88));
    border-color: rgba(125, 211, 252, 0.12);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.14);
}

.auth-footer {
    padding: 18px 24px 24px;
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 -1px 0 rgba(148, 163, 184, 0.08);
}

.auth-footer__inner {
    width: min(100%, 1680px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    text-align: center;
}

.auth-footer__copy {
    display: grid;
    gap: 4px;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 700;
    justify-items: center;
}

.auth-footer__copy span {
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 500;
}

.auth-footer__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.auth-footer__link {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.auth-footer__link:hover {
    color: #0284c7;
}

.auth-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-stat-pill {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.auth-stat-pill strong {
    font-size: 0.92rem;
}

.auth-stat-pill span {
    color: #cbd5e1;
    font-size: 0.83rem;
}

@keyframes authFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(var(--auth-rotate, 0deg));
    }
    50% {
        transform: translate3d(0, -10px, 0) rotate(calc(var(--auth-rotate, 0deg) + 0.6deg));
    }
}

@keyframes authDrift {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -8px, 0);
    }
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translate3d(0, -10px, 0) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes toastFadeOut {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        opacity: 0;
        transform: translate3d(0, -10px, 0) scale(0.97);
    }
}

.table td,
.table th {
    vertical-align: middle;
}

.public-upload-box {
    max-width: 760px;
    margin: 40px auto;
}

.public-upload-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.public-upload-brand__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.brand-logo--upload {
    max-width: min(100%, 360px);
    max-height: 220px;
}

.upload-live-feedback {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.95rem;
}

.upload-live-feedback--success {
    background: #ecfdf3;
    border: 1px solid #a7f3d0;
    color: #166534;
}

.upload-live-feedback--danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.public-upload-notice {
    background: #f8fbff;
    border: 1px solid #cfe7ff;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.public-upload-notice__title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.public-upload-notice__list {
    margin: 0;
    padding-left: 18px;
    color: #475569;
}

.public-upload-notice__list li + li {
    margin-top: 6px;
}

.storage-meter {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid rgba(191, 219, 254, 0.72);
}

.storage-meter--compact {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
}

.storage-meter__top,
.storage-meter__stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.storage-meter__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.storage-meter__percent {
    color: #475569;
    font-size: 0.88rem;
    font-weight: 700;
}

.storage-meter__track {
    position: relative;
    overflow: hidden;
    height: 12px;
    border-radius: 999px;
    background: #e5eef9;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.storage-meter__fill {
    display: block;
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #0ea5e9, #2563eb);
    transition: width 0.28s ease;
}

.storage-meter__stats {
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.5;
}

.storage-meter__stats strong {
    color: #0f172a;
}

.storage-meter__alert {
    color: #b91c1c;
    font-size: 0.86rem;
    font-weight: 700;
}

.storage-meter--warning {
    border-color: rgba(251, 191, 36, 0.42);
    background: linear-gradient(180deg, #fffdf5, #fffbeb);
}

.storage-meter--warning .storage-meter__fill {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.storage-meter--danger {
    border-color: rgba(248, 113, 113, 0.46);
    background: linear-gradient(180deg, #fff8f8, #fef2f2);
}

.storage-meter--danger .storage-meter__fill {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.public-upload-consent {
    padding: 14px 16px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #f8fbff;
}

.public-upload-consent__check {
    margin: 0;
}

.public-upload-consent__check .form-check-input {
    margin-top: 0.22rem;
}

.public-upload-consent__check .form-check-label {
    color: #0f172a;
    line-height: 1.55;
}

.public-upload-consent__check a {
    color: #0284c7;
    font-weight: 700;
    text-decoration: none;
}

.public-upload-consent__check a:hover {
    text-decoration: underline;
}

.public-upload-consent__hint {
    margin-top: 8px;
    padding-left: 24px;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.5;
}

.thumb-img {
    width: 100%;
    height: 96px;
    object-fit: cover;
    border-radius: 12px;
}

.small-muted {
    color: #6b7280;
    font-size: 0.9rem;
}

.qr-box img {
    max-width: 220px;
    border-radius: 12px;
    background: white;
    padding: 10px;
    border: 1px solid #e5e7eb;
}

.photo-card-trigger {
    display: inline-block;
    cursor: zoom-in;
    width: 100%;
}

.photo-card-trigger .thumb-img {
    display: block;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.photo-grid__item {
    min-width: 0;
    content-visibility: auto;
    contain-intrinsic-size: 0 260px;
}

.photo-select-card {
    position: relative;
    padding: 12px !important;
}

.photo-select-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #475569;
    cursor: pointer;
}

.photo-select-checkbox {
    margin-top: 0;
}

.photo-card-title {
    font-size: 0.95rem;
    line-height: 1.25;
    min-height: 2.4em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.photo-card-meta {
    font-size: 0.8rem;
    line-height: 1.25;
}

.photo-card-view-btn {
    width: 100%;
    justify-content: center;
}

.table-actions form {
    margin: 0;
}

.viewer-event-picker {
    display: grid;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    background: #fbfdff;
}

.viewer-event-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
}

.viewer-event-option input {
    margin-top: 3px;
}

.viewer-event-option span {
    display: grid;
    gap: 2px;
    line-height: 1.3;
}

.viewer-event-option small {
    color: #64748b;
}

.legal-page {
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #eef3fb 100%);
}

.legal-page .navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(14px);
}

.legal-shell {
    max-width: 980px;
    margin: 0 auto;
}

.legal-card {
    padding: clamp(28px, 4vw, 44px);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.legal-card__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #0284c7;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-card__title {
    margin-bottom: 14px;
    font-size: clamp(2rem, 4vw, 2.7rem);
    font-weight: 800;
}

.legal-card__intro {
    margin-bottom: 26px;
    color: #475569;
    font-size: 1.02rem;
    line-height: 1.75;
}

.legal-section + .legal-section {
    margin-top: 24px;
}

.legal-section h2 {
    margin-bottom: 10px;
    font-size: 1.16rem;
    font-weight: 800;
}

.legal-section p,
.legal-section li {
    color: #475569;
    line-height: 1.75;
}

.legal-section ul {
    padding-left: 20px;
    margin-bottom: 0;
}

body.photo-viewer-open {
    overflow: hidden;
}

.photo-viewer[hidden] {
    display: none !important;
}

.photo-viewer {
    position: fixed;
    inset: 0;
    z-index: 1050;
}

.photo-viewer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(4px);
}

.photo-viewer__content {
    position: relative;
    z-index: 1;
    width: min(96vw, 1280px);
    margin: 16px auto;
    padding: 18px 72px 24px;
    background: rgba(15, 23, 42, 0.96);
    color: #f8fafc;
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.35);
}

.photo-viewer__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.photo-viewer__counter {
    font-size: 0.95rem;
    color: #cbd5e1;
}

.photo-viewer__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.photo-viewer__original-link,
.photo-viewer__download-link {
    color: #f8fafc;
    text-decoration: none;
    border: 1px solid rgba(248, 250, 252, 0.25);
    border-radius: 999px;
    padding: 8px 14px;
}

.photo-viewer__download-link {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(125, 211, 252, 0.32);
}

.photo-viewer__original-link:hover,
.photo-viewer__download-link:hover {
    background: rgba(248, 250, 252, 0.12);
}

.photo-viewer__stage {
    min-height: calc(100vh - 260px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-viewer__image {
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 260px);
    object-fit: contain;
    border-radius: 18px;
    background: #020617;
}

.photo-viewer__caption {
    margin-top: 18px;
}

.photo-viewer__title {
    font-size: 1.15rem;
    font-weight: 700;
}

.photo-viewer__details {
    color: #cbd5e1;
    margin-top: 6px;
}

.photo-viewer__close,
.photo-viewer__nav {
    position: absolute;
    border: 0;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.14);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.photo-viewer__close:hover,
.photo-viewer__nav:hover {
    background: rgba(248, 250, 252, 0.24);
    transform: translateY(-1px);
}

.photo-viewer__close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
    line-height: 1;
}

.photo-viewer__nav {
    top: 50%;
    width: 52px;
    height: 52px;
    margin-top: -26px;
    font-size: 1.8rem;
}

.photo-viewer__nav--prev {
    left: 14px;
}

.photo-viewer__nav--next {
    right: 14px;
}

.photo-viewer__nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .toast-stack {
        top: 82px;
        right: 12px;
        left: 12px;
        width: auto;
    }

    .auth-page {
        --auth-nav-height: 82px;
    }

    .auth-page .page-main > .container.pb-5 > .alert {
        width: calc(100% - 24px);
        margin: 12px auto 0;
        border-radius: 14px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-showcase {
        grid-template-columns: 1fr;
        padding: 22px;
        min-height: auto;
        border-radius: 0;
    }

    .auth-login-panel {
        order: -1;
        min-height: auto;
        padding: 18px 14px 22px;
    }

    .auth-login-column {
        gap: 14px;
        min-height: auto;
    }

    .auth-login-support,
    .auth-stat-row--compact {
        grid-template-columns: 1fr;
    }

    .auth-login-card {
        padding: 22px;
        border-radius: 22px;
    }

    .auth-title {
        max-width: none;
        font-size: 2rem;
    }

    .auth-description {
        font-size: 0.96rem;
    }

    .auth-showcase__visual {
        min-height: auto;
    }

    .auth-gallery {
        gap: 14px;
    }

    .auth-gallery__row,
    .auth-gallery__row--1,
    .auth-gallery__row--2,
    .auth-gallery__row--3 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .auth-gallery-card,
    .auth-gallery-card--wide,
    .auth-gallery-card--tall,
    .auth-gallery-card--medium {
        min-height: 180px;
        --auth-rotate: 0deg;
    }

    .brand-logo--nav {
        height: 58px;
        max-width: min(56vw, 280px);
    }

    .brand-logo--public {
        max-width: 340px;
        max-height: 196px;
    }

    .navbar-actions {
        gap: 8px;
    }

    .nav-user-chip {
        width: 100%;
        justify-content: center;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .auth-footer {
        padding: 18px 14px 22px;
    }

    .auth-footer__inner {
        align-items: flex-start;
    }

    .auth-footer__links {
        gap: 12px;
    }

    .photo-viewer__content {
        width: calc(100vw - 16px);
        margin: 8px auto;
        padding: 16px 20px 20px;
        border-radius: 18px;
    }

    .photo-viewer__meta {
        flex-direction: column;
        align-items: flex-start;
        margin-right: 42px;
    }

    .photo-viewer__actions {
        width: 100%;
    }

    .photo-viewer__stage {
        min-height: calc(100vh - 240px);
    }

    .photo-viewer__image {
        max-height: calc(100vh - 240px);
    }

    .photo-viewer__nav {
        position: static;
        margin-top: 0;
    }

    .photo-viewer__close {
        top: 10px;
        right: 10px;
    }

    .photo-viewer__caption {
        padding-bottom: 74px;
    }

    .photo-viewer__nav--prev,
    .photo-viewer__nav--next {
        position: absolute;
        bottom: 16px;
        top: auto;
    }

    .photo-viewer__nav--prev {
        left: 16px;
    }

    .photo-viewer__nav--next {
        right: 16px;
    }
}

@media (max-width: 1280px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1fr) 460px;
    }

    .auth-showcase {
        grid-template-columns: 1fr;
        align-content: start;
    }

    .auth-showcase__copy {
        max-width: 680px;
    }

    .auth-login-column {
        align-content: start;
    }
}

@media (max-width: 1180px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-login-panel {
        order: -1;
        min-height: auto;
        padding: 24px 20px 14px;
        border-left: 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    }

    .auth-login-column {
        max-width: 760px;
        min-height: auto;
        align-content: start;
    }

    .auth-login-support {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-stat-row--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-showcase {
        grid-template-columns: 1fr;
        gap: 24px;
        min-height: auto;
        padding: 28px 20px 32px;
    }

    .auth-showcase__copy {
        max-width: none;
    }

    .auth-title {
        max-width: 12ch;
        font-size: clamp(2.25rem, 6vw, 3.6rem);
    }

    .auth-showcase__visual {
        min-height: auto;
    }

    .auth-support-band {
        margin-top: -36px;
        padding-inline: 20px;
    }
}

@media (max-width: 992px) {
    .auth-login-panel {
        order: 1;
        padding-top: 12px;
        border-bottom: 0;
        border-top: 1px solid rgba(148, 163, 184, 0.14);
    }
}

@media (max-width: 860px) {
    .auth-page {
        --auth-nav-height: 82px;
    }

    .auth-page .page-main > .container.pb-5 > .alert {
        width: calc(100% - 24px);
        margin: 12px auto 0;
        border-radius: 14px;
    }

    .auth-login-panel {
        order: 1;
        padding: 18px 14px 10px;
    }

    .auth-login-card {
        padding: 22px 20px 20px;
        border-radius: 24px;
    }

    .auth-password-field .form-control {
        padding-right: 86px;
    }

    .auth-password-toggle {
        right: 38px;
    }

    .auth-login-cta {
        padding: 20px 18px 18px;
        border-radius: 22px;
    }

    .auth-login-cta__title {
        font-size: 1.5rem;
    }

    .auth-login-support {
        grid-template-columns: 1fr;
    }

    .auth-showcase {
        padding: 22px 14px 26px;
    }

    .auth-kicker {
        font-size: 0.74rem;
    }

    .auth-title {
        max-width: none;
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .auth-description {
        max-width: none;
        font-size: 0.96rem;
    }

    .auth-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .auth-gallery__row {
        display: contents;
    }

    .auth-gallery-card,
    .auth-gallery-card--wide,
    .auth-gallery-card--tall,
    .auth-gallery-card--medium {
        min-height: 180px;
        --auth-rotate: 0deg;
    }

    .auth-gallery-card--wide {
        grid-column: 1 / -1;
        min-height: 220px;
    }

    .auth-gallery-card figcaption {
        left: 12px;
        bottom: 12px;
        padding: 7px 12px;
        font-size: 0.82rem;
    }

    .auth-footer {
        padding: 18px 14px 22px;
    }

    .auth-support-band {
        margin-top: -20px;
        padding: 0 14px 24px;
    }
}

@media (max-width: 560px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .cookie-banner__card {
        grid-template-columns: 1fr;
        padding: 16px;
        border-radius: 18px;
    }

    .cookie-banner__accept {
        width: 100%;
    }

    .auth-mobile-modal {
        padding: 10px;
    }

    .auth-mobile-modal__dialog {
        width: 100%;
    }

    .auth-login-column {
        max-width: none;
    }

    .auth-login-card {
        padding: 20px 18px 18px;
    }

    .brand-logo--auth-modal {
        max-width: 190px;
        max-height: 116px;
    }

    .auth-password-field .form-control {
        padding-right: 80px;
    }

    .auth-password-toggle {
        right: 34px;
    }

    .auth-login-cta {
        padding: 18px 16px 16px;
    }

    .auth-login-card__title {
        font-size: 1.75rem;
    }

    .auth-login-card__subtitle {
        margin-bottom: 18px;
        font-size: 0.94rem;
    }

    .auth-stat-row--compact {
        grid-template-columns: 1fr;
    }

    .auth-gallery {
        grid-template-columns: 1fr;
    }

    .auth-gallery-card,
    .auth-gallery-card--wide,
    .auth-gallery-card--tall,
    .auth-gallery-card--medium {
        min-height: 200px;
        grid-column: auto;
    }

    .brand-logo--public {
        max-width: 280px;
        max-height: 160px;
    }

    .brand-logo--upload {
        max-width: min(100%, 300px);
        max-height: 180px;
    }

    .auth-footer__links {
        gap: 10px 14px;
    }
}

/* Login page redesign */
.auth-page .page-main > .container.pb-5 {
    overflow: visible;
}

.auth-screen {
    overflow: visible;
}

.auth-landing {
    width: min(100%, 1680px);
    margin: 0 auto;
    padding: clamp(28px, 3vw, 46px) 24px 36px;
    display: grid;
    gap: 22px;
}

.auth-landing__hero {
    display: grid;
    grid-template-columns: minmax(320px, 0.88fr) minmax(420px, 1.12fr);
    gap: clamp(28px, 3vw, 40px);
    padding: clamp(28px, 4vw, 52px);
    border-radius: 34px;
    background:
        radial-gradient(circle at 18% 14%, rgba(56, 189, 248, 0.12), transparent 28%),
        radial-gradient(circle at 88% 82%, rgba(59, 130, 246, 0.16), transparent 24%),
        linear-gradient(135deg, #0f172a 0%, #101b35 48%, #132038 100%);
    box-shadow: 0 34px 80px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.auth-landing__copy {
    display: grid;
    align-content: center;
    gap: 18px;
    min-width: 0;
}

.auth-landing__title {
    margin: 0;
    font-size: clamp(2.6rem, 5vw, 5.4rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    font-weight: 800;
    color: #f8fafc;
    max-width: 8ch;
}

.auth-landing__description {
    margin: 0;
    max-width: 44ch;
    color: #cbd5e1;
    font-size: 1.03rem;
    line-height: 1.8;
}

.auth-landing__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-landing__pills span {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(186, 230, 253, 0.18);
    color: #e0f2fe;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-landing__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 4px;
}

.auth-landing__button {
    min-height: 52px;
    padding-inline: 22px;
    border-radius: 18px;
    font-weight: 700;
}

.auth-landing__secondary {
    color: #bae6fd;
    font-size: 0.96rem;
    font-weight: 700;
    text-decoration: none;
}

.auth-landing__secondary:hover {
    color: #ffffff;
}

.auth-landing__visual {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(240px, 0.84fr);
    gap: 18px;
    min-width: 0;
    align-items: stretch;
}

.auth-landing__visual-side {
    display: grid;
    grid-template-rows: minmax(280px, 1fr) auto;
    gap: 18px;
    min-width: 0;
}

.auth-landing__mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.auth-landing-card {
    position: relative;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 44px rgba(2, 6, 23, 0.22);
}

.auth-landing-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-landing-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.03) 35%, rgba(15, 23, 42, 0.72) 100%);
}

.auth-landing-card figcaption {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 1;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #f8fafc;
    font-size: 0.88rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.auth-landing-card--primary {
    min-height: 560px;
}

.auth-landing-card--portrait {
    min-height: 350px;
}

.auth-landing-card--small {
    min-height: 190px;
}

.auth-support-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.auth-support-card {
    padding: 22px 22px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.auth-support-card__eyebrow {
    margin-bottom: 10px;
    color: #7dd3fc;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-support-card__title {
    margin: 0 0 10px;
    font-size: 1.16rem;
    line-height: 1.35;
    font-weight: 800;
    color: #0f172a;
}

.auth-support-card__text {
    margin: 0;
    color: #475569;
    line-height: 1.72;
}

.auth-support-card--accent {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
    border-color: rgba(125, 211, 252, 0.12);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.12);
}

.auth-support-card--accent .auth-support-card__title,
.auth-support-card--accent .auth-support-card__text {
    color: #f8fafc;
}

@media (max-width: 1280px) {
    .auth-landing__hero {
        grid-template-columns: 1fr;
    }

    .auth-landing__title {
        max-width: 10ch;
        font-size: clamp(2.5rem, 6vw, 4.4rem);
    }

    .auth-landing__description {
        max-width: 58ch;
    }

    .auth-support-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-support-card--accent {
        grid-column: span 2;
    }
}

@media (max-width: 860px) {
    .auth-landing {
        padding: 18px 14px 22px;
    }

    .auth-landing__hero {
        padding: 22px 18px;
        border-radius: 26px;
        gap: 22px;
    }

    .auth-landing__title {
        max-width: none;
        font-size: clamp(2rem, 10vw, 3.2rem);
    }

    .auth-landing__description {
        font-size: 0.97rem;
    }

    .auth-landing__visual {
        grid-template-columns: 1fr;
    }

    .auth-landing__visual-side {
        grid-template-rows: auto;
    }

    .auth-landing-card--primary {
        min-height: 360px;
    }

    .auth-landing-card--portrait {
        min-height: 260px;
    }

    .auth-landing-card--small {
        min-height: 180px;
    }

    .auth-support-grid {
        grid-template-columns: 1fr;
    }

    .auth-support-card--accent {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .auth-landing__hero {
        padding: 18px 14px;
    }

    .auth-landing__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-landing__button {
        width: 100%;
    }

    .auth-landing__mini-grid {
        grid-template-columns: 1fr;
    }

    .auth-landing-card figcaption {
        left: 12px;
        bottom: 12px;
        padding: 7px 12px;
        font-size: 0.82rem;
    }

    .auth-support-card {
        padding: 18px 16px;
        border-radius: 20px;
    }
}

/* Final login layout */
.auth-page .page-main > .container.pb-5 {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
    overflow: visible;
}

.auth-page {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 26%),
        linear-gradient(180deg, #f7fbff 0%, #eef5fb 100%);
}

.auth-screen {
    min-height: calc(100dvh - var(--auth-nav-height));
    display: flex;
    flex-direction: column;
}

.login-home {
    width: 100%;
    margin: 0;
    padding: 0 0 36px;
    display: grid;
    gap: 28px;
    flex: 1 0 auto;
}

.login-home__hero {
    position: relative;
    min-height: calc(100dvh - var(--auth-nav-height));
    padding: clamp(28px, 4vw, 56px);
    background:
        radial-gradient(circle at 14% 16%, rgba(56, 189, 248, 0.2), transparent 24%),
        radial-gradient(circle at 82% 22%, rgba(251, 191, 36, 0.12), transparent 20%),
        radial-gradient(circle at 72% 78%, rgba(59, 130, 246, 0.16), transparent 26%),
        linear-gradient(135deg, #0a1222 0%, #0f1b33 48%, #10203a 100%);
    overflow: clip;
}

.login-home__hero::before,
.login-home__hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.login-home__hero::before {
    left: -10%;
    bottom: -26%;
    width: 36%;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.14), transparent 68%);
}

.login-home__hero::after {
    top: 10%;
    right: -8%;
    width: 32%;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
}

.login-home__hero-inner {
    position: relative;
    z-index: 1;
    width: min(100%, 1560px);
    margin: 0 auto;
    display: grid;
    align-content: center;
    gap: clamp(28px, 3vw, 42px);
}

.login-home__hero-heading {
    display: grid;
    gap: 12px;
    max-width: none;
}

.login-home__kicker {
    justify-self: start;
}

.login-home__copy {
    display: grid;
    align-content: start;
    gap: 18px;
    min-width: 0;
    max-width: 62ch;
}

.login-home__hero-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px 28px;
    align-items: end;
}

.login-home__title {
    margin: 0;
    width: 100%;
    color: #f8fafc;
    font-size: clamp(3rem, 4.8vw, 5.2rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
    font-weight: 800;
    text-wrap: pretty;
}

.login-home__description {
    margin: 0;
    color: #dbe7f5;
    font-size: 1.04rem;
    line-height: 1.82;
}

.login-home__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.login-home__chips span {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(186, 230, 253, 0.2);
    background: rgba(255, 255, 255, 0.07);
    color: #e0f2fe;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.login-home__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.login-home__primary {
    min-height: 52px;
    padding-inline: 22px;
    border-radius: 18px;
    font-weight: 700;
    color: #0f172a;
}

.login-home__secondary {
    color: #cde8ff;
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 700;
}

.login-home__secondary:hover {
    color: #ffffff;
}

.login-home__gallery {
    --card-shift-factor: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 20px 22px;
    min-width: 0;
    padding: 6px 0 0;
}

.login-home__gallery-card {
    position: relative;
    flex: 1 1 clamp(190px, 18vw, 260px);
    min-width: 190px;
    max-width: 340px;
    margin: 0;
    overflow: hidden;
    margin-top: calc(var(--card-offset, 0px) * var(--card-shift-factor));
    aspect-ratio: var(--card-aspect, 0.82);
    transform: rotate(var(--card-rotation, 0deg));
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 50px rgba(2, 6, 23, 0.32);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.login-home__gallery-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-home__gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.06) 34%, rgba(15, 23, 42, 0.74) 100%);
}

.login-home__gallery-card:nth-child(8n + 1) {
    flex-basis: clamp(220px, 22vw, 320px);
    --card-aspect: 0.82;
    --card-offset: 24px;
    --card-rotation: -6deg;
}

.login-home__gallery-card:nth-child(8n + 2) {
    flex-basis: clamp(180px, 16vw, 230px);
    --card-aspect: 0.68;
    --card-offset: 84px;
    --card-rotation: 5deg;
}

.login-home__gallery-card:nth-child(8n + 3) {
    flex-basis: clamp(260px, 24vw, 360px);
    --card-aspect: 1.08;
    --card-offset: 6px;
    --card-rotation: -3deg;
}

.login-home__gallery-card:nth-child(8n + 4) {
    flex-basis: clamp(170px, 15vw, 210px);
    --card-aspect: 1.24;
    --card-offset: 96px;
    --card-rotation: 7deg;
}

.login-home__gallery-card:nth-child(8n + 5) {
    flex-basis: clamp(210px, 19vw, 280px);
    --card-aspect: 0.8;
    --card-offset: 10px;
    --card-rotation: 4deg;
}

.login-home__gallery-card:nth-child(8n + 6) {
    flex-basis: clamp(180px, 16vw, 230px);
    --card-aspect: 0.72;
    --card-offset: 62px;
    --card-rotation: -5deg;
}

.login-home__gallery-card:nth-child(8n + 7) {
    flex-basis: clamp(250px, 23vw, 340px);
    --card-aspect: 1.14;
    --card-offset: 28px;
    --card-rotation: 2deg;
}

.login-home__gallery-card:nth-child(8n + 8) {
    flex-basis: clamp(180px, 17vw, 240px);
    --card-aspect: 0.84;
    --card-offset: 78px;
    --card-rotation: -7deg;
}

.login-home__info-grid {
    width: min(100%, 1520px);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.login-home__info-card {
    padding: 22px 22px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.login-home__info-card--accent {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.9));
    border-color: rgba(125, 211, 252, 0.12);
}

.login-home__info-eyebrow {
    margin-bottom: 10px;
    color: #7dd3fc;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-home__info-title {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 1.14rem;
    line-height: 1.35;
    font-weight: 800;
}

.login-home__info-text {
    margin: 0;
    color: #475569;
    line-height: 1.72;
}

.login-home__info-card--accent .login-home__info-title,
.login-home__info-card--accent .login-home__info-text {
    color: #f8fafc;
}

.login-home__story-grid,
.login-home__flow,
.login-home__event-types {
    width: min(100%, 1520px);
    margin: 0 auto;
    padding: 0 24px;
}

.login-home__story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 18px;
}

.login-home__story-card {
    padding: 26px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.login-home__story-card--dark {
    background: linear-gradient(135deg, #0f172a, #13233f);
    border-color: rgba(125, 211, 252, 0.16);
}

.login-home__story-eyebrow,
.login-home__section-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    color: #0284c7;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-home__story-title {
    margin: 0 0 12px;
    font-size: clamp(1.45rem, 2vw, 2.1rem);
    line-height: 1.08;
    font-weight: 800;
}

.login-home__story-card--dark .login-home__story-title,
.login-home__story-card--dark .login-home__story-text,
.login-home__story-card--dark .login-home__story-eyebrow {
    color: #f8fafc;
}

.login-home__story-card--dark .login-home__story-eyebrow {
    color: #7dd3fc;
}

.login-home__story-text {
    margin: 0;
    color: #475569;
    line-height: 1.78;
}

.login-home__story-text + .login-home__story-text {
    margin-top: 12px;
}

.login-home__flow {
    display: grid;
    gap: 18px;
}

.login-home__section-head {
    max-width: 760px;
}

.login-home__section-title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.6rem, 2.2vw, 2.5rem);
    line-height: 1.08;
    font-weight: 800;
}

.login-home__flow-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.login-home__flow-card {
    padding: 20px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
}

.login-home__flow-number {
    margin-bottom: 10px;
    color: #0284c7;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.login-home__flow-text {
    margin: 0;
    color: #334155;
    line-height: 1.62;
    font-weight: 600;
}

.login-home__event-types {
    display: grid;
    gap: 18px;
    padding-bottom: 18px;
}

.login-home__event-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.login-home__event-pills span {
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.94);
    color: #f8fafc;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.about-page .page-main > .container.pb-5 {
    width: 100%;
    max-width: none;
    padding: 0;
    display: flex;
    flex: 1 0 auto;
    min-width: 0;
    overflow: hidden;
}

.about-page .page-main > .container.pb-5 > .auth-screen {
    flex: 1 0 auto;
    min-width: 0;
}

.about-page-shell {
    display: grid;
    gap: 24px;
    padding-bottom: 36px;
}

.about-hero {
    position: relative;
    padding: clamp(30px, 4vw, 56px);
    min-height: calc(100dvh - var(--auth-nav-height));
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 26%),
        radial-gradient(circle at right center, rgba(251, 191, 36, 0.12), transparent 24%),
        linear-gradient(135deg, #0a1222 0%, #0f1b33 48%, #10203a 100%);
    overflow: clip;
}

.about-hero__inner {
    width: min(100%, 1520px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
    gap: clamp(26px, 3vw, 52px);
    align-items: center;
    min-height: 0;
}

.about-hero__copy {
    max-width: 760px;
}

.about-hero__title {
    margin: 0 0 16px;
    color: #f8fafc;
    font-size: clamp(3rem, 5.4vw, 6rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
    font-weight: 800;
}

.about-hero__lead,
.about-hero__text {
    margin: 0;
    color: #dbe7f5;
    line-height: 1.84;
}

.about-hero__lead {
    font-size: 1.04rem;
    margin-bottom: 14px;
}

.about-hero__actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.about-hero__primary {
    min-height: 52px;
    padding-inline: 22px;
    border-radius: 18px;
    font-weight: 700;
    color: #0f172a;
}

.about-hero__secondary {
    color: #d8ecff;
    text-decoration: none;
    font-weight: 700;
}

.about-hero__secondary:hover {
    color: #ffffff;
}

.about-hero__visual {
    display: grid;
    gap: 16px;
}

.about-hero-card {
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    box-shadow: 0 24px 48px rgba(2, 6, 23, 0.22);
    backdrop-filter: blur(12px);
}

.about-hero-card--large {
    transform: rotate(-2deg);
}

.about-hero-card--compact {
    width: min(100%, 320px);
    justify-self: end;
    transform: rotate(3deg);
}

.about-hero-card--accent {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.18));
    transform: rotate(-3deg);
}

.about-hero-card__eyebrow {
    margin-bottom: 10px;
    color: #7dd3fc;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-hero-card h2 {
    margin: 0 0 10px;
    font-size: 1.5rem;
    line-height: 1.08;
    font-weight: 800;
}

.about-hero-card p {
    margin: 0;
    color: #dbe7f5;
    line-height: 1.72;
}

.about-section {
    width: min(100%, 1520px);
    margin: 0 auto;
    padding: 0 24px;
}

.about-section--floating {
    margin-top: -86px;
    position: relative;
    z-index: 2;
}

.about-section__inner {
    display: grid;
    gap: 20px;
}

.about-section__header {
    max-width: 760px;
}

.about-section__eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    color: #0284c7;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-section__title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.7rem, 2.3vw, 3rem);
    line-height: 1.05;
    font-weight: 800;
}

.about-section__text {
    margin: 0;
    color: #475569;
    line-height: 1.84;
}

.about-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-feature-card {
    padding: 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.about-feature-card__eyebrow {
    margin-bottom: 10px;
    color: #0284c7;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-feature-card__title {
    margin: 0 0 10px;
    font-size: 1.28rem;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
}

.about-feature-card__text {
    margin: 0;
    color: #475569;
    line-height: 1.72;
}

.about-step-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.about-step-card {
    padding: 22px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
}

.about-step-card__number {
    margin-bottom: 10px;
    color: #0284c7;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.about-step-card__title {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 1.05rem;
    line-height: 1.28;
    font-weight: 800;
}

.about-step-card__text {
    margin: 0;
    color: #475569;
    line-height: 1.68;
}

.about-section--soft .about-section__inner {
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.94));
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.05);
}

.about-split-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: start;
}

.about-benefit-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.about-benefit-pill,
.about-type-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.about-type-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.about-cta-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, #0f172a, #153055);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.16);
}

.about-cta-band .about-section__title,
.about-cta-band .about-section__eyebrow {
    color: #f8fafc;
}

.about-cta-band__button {
    min-height: 54px;
    padding-inline: 22px;
    border-radius: 18px;
    white-space: nowrap;
}

@media (max-width: 1260px) {
    .login-home__hero {
        min-height: auto;
    }

    .login-home__title {
        font-size: clamp(2.7rem, 6.4vw, 4.9rem);
    }

    .login-home__gallery {
        --card-shift-factor: 0.58;
        justify-content: flex-start;
    }

    .login-home__hero-meta {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .login-home__flow-grid,
    .about-step-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .about-hero__inner,
    .about-feature-grid,
    .about-split-grid {
        grid-template-columns: 1fr;
    }

    .about-type-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .login-home__hero {
        padding-inline: 22px;
    }

    .login-home__title {
        font-size: clamp(2.5rem, 8vw, 4.2rem);
    }

    .login-home__info-grid {
        grid-template-columns: 1fr;
        padding-inline: 22px;
    }

    .login-home__story-grid,
    .login-home__flow,
    .login-home__event-types,
    .about-section {
        padding-inline: 22px;
    }

    .login-home__story-grid,
    .login-home__flow-grid,
    .about-feature-grid,
    .about-step-grid,
    .about-type-grid,
    .about-cta-band {
        grid-template-columns: 1fr;
    }

    .about-section--floating {
        margin-top: 0;
    }

    .about-hero {
        min-height: auto;
    }

    .about-hero__inner {
        min-height: 0;
    }
}

@media (max-width: 760px) {
    .login-home {
        padding-bottom: 22px;
    }

    .login-home__hero {
        padding: 22px 14px 28px;
    }

    .login-home__title {
        font-size: clamp(2.2rem, 10vw, 3.8rem);
    }

    .login-home__description {
        font-size: 0.96rem;
    }

    .login-home__gallery {
        --card-shift-factor: 0;
        gap: 12px;
    }

    .login-home__gallery-card:nth-child(8n + 1),
    .login-home__gallery-card:nth-child(8n + 2),
    .login-home__gallery-card:nth-child(8n + 3),
    .login-home__gallery-card:nth-child(8n + 4),
    .login-home__gallery-card:nth-child(8n + 5),
    .login-home__gallery-card:nth-child(8n + 6),
    .login-home__gallery-card:nth-child(8n + 7),
    .login-home__gallery-card:nth-child(8n + 8) {
        flex-basis: calc(50% - 6px);
        min-width: calc(50% - 6px);
        max-width: none;
        aspect-ratio: 0.86;
        margin-top: 0;
        transform: none;
    }

    .login-home__info-grid {
        padding-inline: 14px;
    }

    .login-home__story-grid,
    .login-home__flow,
    .login-home__event-types,
    .about-section {
        padding-inline: 14px;
    }

    .login-home__story-card,
    .about-feature-card,
    .about-step-card,
    .about-cta-band,
    .about-section--soft .about-section__inner {
        padding: 20px 18px;
        border-radius: 22px;
    }

    .about-hero {
        padding: 22px 14px 28px;
    }

    .about-hero__title {
        font-size: clamp(2.3rem, 10vw, 4rem);
    }

    .about-hero__visual {
        gap: 12px;
    }

    .about-hero-card--compact,
    .about-hero-card--large,
    .about-hero-card--accent {
        width: 100%;
        justify-self: stretch;
        transform: none;
    }
}

@media (max-width: 560px) {
    .login-home__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .login-home__primary {
        width: 100%;
    }

    .login-home__gallery-card:nth-child(8n + 1),
    .login-home__gallery-card:nth-child(8n + 2),
    .login-home__gallery-card:nth-child(8n + 3),
    .login-home__gallery-card:nth-child(8n + 4),
    .login-home__gallery-card:nth-child(8n + 5),
    .login-home__gallery-card:nth-child(8n + 6),
    .login-home__gallery-card:nth-child(8n + 7),
    .login-home__gallery-card:nth-child(8n + 8) {
        flex-basis: 100%;
        min-width: 100%;
    }

    .login-home__info-card {
        padding: 18px 16px;
        border-radius: 20px;
    }

    .about-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .about-cta-band {
        grid-template-columns: 1fr;
    }

    .about-hero__primary,
    .about-cta-band__button {
        width: 100%;
    }
}
