:root {
    --navy-950: #06152f;
    --navy-900: #082347;
    --navy-800: #0b365e;
    --blue-600: #087fb5;
    --cyan-500: #16bfd2;
    --cyan-300: #72e1e5;
    --lime-500: #82c63d;
    --lime-300: #b8e05c;
    --surface: #ffffff;
    --surface-soft: #f4f9fb;
    --surface-muted: #eaf3f6;
    --text: #10233d;
    --text-soft: #607187;
    --border: #dce8ed;
    --danger: #c7384f;
    --danger-soft: #fff0f2;
    --success: #237b52;
    --success-soft: #eaf8f1;
    --warning: #a66a0a;
    --warning-soft: #fff7e6;
    --shadow-sm: 0 8px 24px rgba(6, 35, 71, .08);
    --shadow-lg: 0 28px 80px rgba(6, 35, 71, .16);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 0%, rgba(114, 225, 229, .22), transparent 32rem),
        radial-gradient(circle at 100% 15%, rgba(184, 224, 92, .14), transparent 28rem),
        linear-gradient(145deg, #f7fbfc 0%, #edf6f8 100%);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .28;
    background-image: linear-gradient(rgba(8, 35, 71, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(8, 35, 71, .04) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, #000, transparent 76%);
}

a { color: var(--blue-600); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.public-shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }

.brand-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
}
.brand-lockup { display: flex; align-items: center; gap: 16px; min-width: 0; }
.brand-logo { width: 76px; height: 76px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(8, 35, 71, .12)); }
.brand-partner { width: 128px; height: 72px; object-fit: contain; }
.brand-divider { width: 1px; height: 42px; background: var(--border); }
.brand-copy strong { display: block; font-size: 1rem; letter-spacing: -.01em; }
.brand-copy span { color: var(--text-soft); font-size: .88rem; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(220,232,237,.85);
    color: var(--text-soft);
    font-size: .84rem;
    font-weight: 700;
    backdrop-filter: blur(12px);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-500); box-shadow: 0 0 0 5px rgba(130,198,61,.13); }

.card {
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(220,232,237,.95);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
}

.hero-login {
    min-height: calc(100vh - 124px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
    align-items: center;
    gap: 72px;
    padding: 28px 0 72px;
}
.hero-copy { position: relative; padding: 40px 0; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--blue-600);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .74rem;
    font-weight: 850;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, var(--cyan-500), var(--lime-500)); }
h1, h2, h3 { margin-top: 0; color: var(--navy-950); line-height: 1.08; letter-spacing: -.035em; }
.hero-copy h1 { max-width: 700px; margin: 22px 0 22px; font-size: clamp(2.55rem, 5.8vw, 5.4rem); }
.hero-copy h1 span { color: transparent; background: linear-gradient(100deg, var(--blue-600), var(--cyan-500) 55%, var(--lime-500)); background-clip: text; -webkit-background-clip: text; }
.hero-copy > p { max-width: 620px; margin: 0; color: var(--text-soft); font-size: clamp(1rem, 1.5vw, 1.16rem); }
.feature-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.access-card { padding: 36px; position: relative; overflow: hidden; }
.access-card::before { content: ""; position: absolute; width: 210px; height: 210px; right: -100px; top: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(114,225,229,.28), transparent 68%); }
.access-card__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(145deg, var(--navy-900), var(--blue-600)); color: white; box-shadow: 0 14px 28px rgba(8,127,181,.2); }
.access-card__icon svg { width: 27px; height: 27px; }
.access-card h2 { margin: 24px 0 10px; font-size: 1.75rem; }
.access-card p { margin: 0 0 24px; color: var(--text-soft); }

.form-group { margin-bottom: 18px; }
.form-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; font-weight: 750; color: var(--navy-900); font-size: .93rem; }
.form-hint { color: var(--text-soft); font-size: .8rem; font-weight: 500; }
.input, .textarea, .select {
    width: 100%;
    min-height: 52px;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 14px;
    outline: 0;
    color: var(--text);
    background: var(--surface-soft);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea { min-height: 105px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--cyan-500); background: white; box-shadow: 0 0 0 4px rgba(22,191,210,.13); }
.code-input { height: 62px; text-align: center; text-transform: uppercase; letter-spacing: .16em; font-size: 1.22rem; font-weight: 850; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 11px 17px;
    border: 0;
    border-radius: 13px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 800;
    line-height: 1;
    transition: transform .18s, box-shadow .18s, filter .18s, background .18s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-primary { color: white; background: linear-gradient(110deg, var(--navy-900), var(--blue-600) 68%, var(--cyan-500)); box-shadow: 0 14px 28px rgba(8, 127, 181, .2); }
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 18px 34px rgba(8,127,181,.27); }
.btn-secondary { color: var(--navy-900); background: white; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: #bdd4dd; background: var(--surface-soft); }
.btn-danger { color: white; background: var(--danger); }
.btn-danger-soft { color: var(--danger); background: var(--danger-soft); border: 1px solid #f4ccd3; }
.btn-success { color: white; background: var(--success); }
.btn-block { width: 100%; min-height: 54px; }
.btn-sm { min-height: 38px; padding: 9px 12px; border-radius: 10px; font-size: .86rem; }

.alert { display: flex; align-items: flex-start; gap: 11px; margin: 16px 0; padding: 13px 15px; border-radius: 13px; font-size: .91rem; }
.alert svg { width: 19px; height: 19px; margin-top: 1px; flex: 0 0 auto; }
.alert-error { color: #96263a; background: var(--danger-soft); border: 1px solid #f5cbd2; }
.alert-success { color: var(--success); background: var(--success-soft); border: 1px solid #ccebdc; }
.alert-warning { color: var(--warning); background: var(--warning-soft); border: 1px solid #f1dfb9; }

.site-footer { padding: 10px 0 30px; color: var(--text-soft); font-size: .82rem; text-align: center; }

/* Galerie client */
.gallery-page { padding-bottom: 54px; }
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 18px 0 24px; }
.gallery-head h1 { margin-bottom: 8px; font-size: clamp(2rem, 5vw, 3.6rem); }
.gallery-head p { margin: 0; color: var(--text-soft); }
.gallery-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.gallery-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: 20px; }
.gallery-count { color: var(--text-soft); font-size: .92rem; }
.gallery-count strong { color: var(--navy-950); }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.photo-card { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--border); background: white; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.photo-card:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(6,35,71,.14); }
.photo-preview { display: block; position: relative; aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(145deg, #eaf3f6, #dcecf0); }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.photo-card:hover .photo-preview img { transform: scale(1.035); }
.photo-zoom { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: white; background: rgba(6,21,47,.68); backdrop-filter: blur(8px); opacity: 0; transform: translateY(-4px); transition: .2s; }
.photo-card:hover .photo-zoom { opacity: 1; transform: translateY(0); }
.photo-zoom svg { width: 18px; height: 18px; }
.file-preview { display: grid; place-items: center; height: 100%; color: var(--navy-800); }
.file-preview svg { width: 58px; height: 58px; }
.photo-body { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; }
.photo-name { min-width: 0; }
.photo-name strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; }
.photo-name span { color: var(--text-soft); font-size: .78rem; }

.empty-state { padding: 64px 24px; text-align: center; }
.empty-state__icon { display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 20px; border-radius: 24px; background: var(--surface-muted); color: var(--blue-600); }
.empty-state__icon svg { width: 34px; height: 34px; }
.empty-state h2 { margin-bottom: 10px; }
.empty-state p { margin: 0; color: var(--text-soft); }

.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(2,13,30,.92); backdrop-filter: blur(14px); }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1200px, 94vw); max-height: 86vh; object-fit: contain; border-radius: 16px; box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.lightbox-close { position: absolute; top: 20px; right: 20px; width: 46px; height: 46px; border: 0; border-radius: 15px; background: rgba(255,255,255,.14); color: white; cursor: pointer; }
.lightbox-close svg { width: 22px; height: 22px; }

/* Administration */
.admin-body { background: #eef4f6; }
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 18px; background: linear-gradient(180deg, var(--navy-950), #092a4d 70%, #0a3b59); color: white; overflow-y: auto; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 0 7px 25px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-brand img { width: 54px; height: 54px; object-fit: contain; }
.sidebar-brand strong { display: block; line-height: 1.15; }
.sidebar-brand span { color: rgba(255,255,255,.56); font-size: .76rem; }
.sidebar-nav { display: grid; gap: 7px; margin-top: 24px; }
.sidebar-nav a { display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 11px 13px; border-radius: 13px; color: rgba(255,255,255,.72); text-decoration: none; font-weight: 700; font-size: .9rem; }
.sidebar-nav a:hover, .sidebar-nav a.is-active { color: white; background: rgba(255,255,255,.11); }
.sidebar-nav svg { width: 19px; height: 19px; }
.sidebar-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }

.admin-main { min-width: 0; padding: 30px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 26px; }
.admin-title h1 { margin-bottom: 6px; font-size: clamp(1.7rem, 3vw, 2.45rem); }
.admin-title p { margin: 0; color: var(--text-soft); }
.admin-actions { display: flex; gap: 10px; }
.mobile-menu { display: none; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 22px; }
.stat-card { padding: 20px; border: 1px solid var(--border); border-radius: 20px; background: white; box-shadow: var(--shadow-sm); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stat-label { color: var(--text-soft); font-size: .84rem; font-weight: 700; }
.stat-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: var(--blue-600); background: var(--surface-muted); }
.stat-icon svg { width: 19px; height: 19px; }
.stat-value { margin-top: 12px; font-size: 1.7rem; font-weight: 850; color: var(--navy-950); letter-spacing: -.04em; }

.panel { border: 1px solid var(--border); border-radius: 22px; background: white; box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.panel-head h2 { margin: 0; font-size: 1.1rem; letter-spacing: -.02em; }
.filters { display: flex; align-items: center; gap: 9px; }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--text-soft); pointer-events: none; }
.search-box input { width: 240px; min-height: 42px; padding: 9px 12px 9px 39px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); outline: none; }
.search-box input:focus { border-color: var(--cyan-500); box-shadow: 0 0 0 3px rgba(22,191,210,.12); }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 15px 18px; border-bottom: 1px solid #edf2f4; text-align: left; vertical-align: middle; }
.data-table th { color: var(--text-soft); background: #fbfcfd; font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }
.data-table tbody tr:hover { background: #fbfdfe; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.code-badge { display: inline-flex; align-items: center; gap: 7px; font-weight: 850; color: var(--navy-900); letter-spacing: .06em; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; font-size: .76rem; font-weight: 800; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.status-active { color: var(--success); background: var(--success-soft); }
.status-active::before { background: #37a972; }
.status-expired { color: #8e5c10; background: var(--warning-soft); }
.status-expired::before { background: #d3932f; }
.table-actions { display: flex; gap: 7px; justify-content: flex-end; }
.muted { color: var(--text-soft); }
.truncate { max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.form-panel { max-width: 860px; padding: 26px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.form-grid .span-2 { grid-column: span 2; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 8px; }

.drop-zone { position: relative; display: grid; place-items: center; min-height: 230px; padding: 26px; text-align: center; border: 2px dashed #bfd7df; border-radius: 20px; background: linear-gradient(145deg, #f7fbfc, #edf7f8); cursor: pointer; transition: .2s; }
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--cyan-500); background: #f1fbfc; }
.drop-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-zone__icon { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 19px; background: white; color: var(--blue-600); box-shadow: var(--shadow-sm); }
.drop-zone__icon svg { width: 28px; height: 28px; }
.drop-zone strong { display: block; margin-bottom: 5px; }
.drop-zone p { margin: 0; color: var(--text-soft); font-size: .88rem; }
.file-list { display: grid; gap: 8px; margin-top: 12px; }
.file-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 13px; border-radius: 12px; background: var(--surface-soft); border: 1px solid var(--border); font-size: .86rem; }
.file-item__name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.file-item__size { color: var(--text-soft); white-space: nowrap; }
.progress-wrap { display: none; margin-top: 16px; }
.progress-wrap.is-visible { display: block; }
.progress-bar { height: 10px; overflow: hidden; border-radius: 999px; background: var(--surface-muted); }
.progress-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-600), var(--cyan-500), var(--lime-500)); transition: width .15s; }
.progress-label { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; color: var(--text-soft); font-size: .8rem; }

.manage-grid { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 20px; align-items: start; }
.manage-sidebar { padding: 22px; }
.manage-sidebar h2 { font-size: 1.1rem; }
.manage-photos { padding: 22px; }
.admin-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.admin-photo { overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-soft); }
.admin-photo__preview { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; background: #eaf2f5; }
.admin-photo__preview img { width: 100%; height: 100%; object-fit: cover; }
.admin-photo__preview svg { width: 42px; height: 42px; color: var(--blue-600); }
.admin-photo__foot { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 9px; }
.admin-photo__foot span { color: var(--text-soft); font-size: .75rem; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; }
.login-card { width: min(430px, 100%); padding: 34px; }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 26px; }
.login-brand img:first-child { width: 70px; height: 70px; object-fit: contain; }
.login-brand img:last-child { width: 120px; height: 70px; object-fit: contain; }
.login-card h1 { margin-bottom: 8px; text-align: center; font-size: 1.8rem; }
.login-card > p { margin: 0 0 26px; text-align: center; color: var(--text-soft); }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 48px; }
.password-toggle { position: absolute; right: 8px; top: 50%; display: grid; place-items: center; width: 38px; height: 38px; transform: translateY(-50%); border: 0; border-radius: 10px; color: var(--text-soft); background: transparent; cursor: pointer; }
.password-toggle:hover { background: var(--surface-muted); }
.password-toggle svg { width: 18px; height: 18px; }

@media (max-width: 1040px) {
    .hero-login { grid-template-columns: 1fr; gap: 20px; padding-top: 0; }
    .hero-copy { padding-bottom: 10px; }
    .hero-copy h1 { max-width: 850px; }
    .access-card { width: min(520px,100%); }
    .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .manage-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .admin-layout { display: block; }
    .sidebar { position: fixed; left: 0; top: 0; z-index: 50; width: 270px; transform: translateX(-100%); transition: transform .24s; box-shadow: 24px 0 60px rgba(0,0,0,.2); }
    .sidebar.is-open { transform: translateX(0); }
    .admin-main { padding: 20px; }
    .mobile-menu { display: inline-flex; }
    .admin-title { flex: 1; }
    .admin-topbar { align-items: flex-start; }
    .admin-actions .desktop-only { display: none; }
    .panel-head { align-items: flex-start; flex-direction: column; }
    .filters { width: 100%; }
    .search-box, .search-box input { width: 100%; }
    .data-table thead { display: none; }
    .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
    .data-table tr { padding: 13px 15px; border-bottom: 1px solid var(--border); }
    .data-table td { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border: 0; text-align: right; }
    .data-table td::before { content: attr(data-label); color: var(--text-soft); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; text-align: left; }
    .data-table td:first-child { padding-top: 2px; }
    .table-actions { justify-content: flex-end; }
    .truncate { max-width: 65%; }
    .admin-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 640px) {
    .shell, .public-shell { width: min(100% - 22px, 1180px); }
    .brand-bar { padding: 14px 0; }
    .brand-logo { width: 60px; height: 60px; }
    .brand-partner { width: 102px; height: 58px; }
    .brand-copy, .brand-divider, .brand-bar > .pill { display: none; }
    .hero-login { min-height: auto; padding: 18px 0 44px; }
    .hero-copy { padding: 14px 4px 4px; }
    .hero-copy h1 { font-size: clamp(2.35rem, 13vw, 3.8rem); }
    .feature-row { display: grid; grid-template-columns: 1fr 1fr; }
    .access-card { padding: 25px 20px; border-radius: 24px; }
    .gallery-head { align-items: flex-start; flex-direction: column; margin-top: 6px; }
    .gallery-toolbar { align-items: stretch; flex-direction: column; }
    .gallery-toolbar .btn { width: 100%; }
    .photo-grid { grid-template-columns: 1fr; gap: 13px; }
    .photo-preview { aspect-ratio: 16/11; }
    .photo-zoom { opacity: 1; transform: none; }
    .admin-main { padding: 14px 11px 24px; }
    .admin-topbar { gap: 10px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 15px; }
    .stat-value { font-size: 1.45rem; }
    .stat-icon { width: 35px; height: 35px; }
    .form-panel { padding: 18px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .span-2 { grid-column: span 1; }
    .form-actions { flex-direction: column-reverse; }
    .form-actions .btn { width: 100%; }
    .drop-zone { min-height: 190px; padding: 20px 14px; }
    .admin-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .login-card { padding: 27px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Page d'accueil Rush Canyon 2.1 */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
body.rush-home {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    background: #f8fbfb url('../img/rush-canyon-background.jpg') center center / cover no-repeat fixed;
}
body.rush-home::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.08) 60%, rgba(255,255,255,.18)),
        radial-gradient(circle at 50% 43%, rgba(255,255,255,.78) 0, rgba(255,255,255,.54) 28%, rgba(255,255,255,.08) 68%);
}
.rush-home__content {
    position: relative;
    z-index: 1;
    width: min(850px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: clamp(34px, 6vh, 72px) 0 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.rush-home__logo {
    width: min(470px, 72vw);
    max-height: 340px;
    object-fit: contain;
    margin: 0 auto clamp(22px, 3.5vh, 38px);
    filter: drop-shadow(0 14px 24px rgba(6, 21, 47, .12));
}
.rush-access {
    position: relative;
    width: 100%;
    padding: 58px clamp(28px, 5vw, 54px) 34px;
    border: 1px solid rgba(255,255,255,.92);
    border-radius: 26px;
    background: rgba(255,255,255,.93);
    box-shadow: 0 24px 65px rgba(6, 35, 71, .18);
    backdrop-filter: blur(18px);
    text-align: center;
}
.rush-access__lock {
    position: absolute;
    top: -39px;
    left: 50%;
    transform: translateX(-50%);
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(220,232,237,.9);
    border-radius: 50%;
    color: #66758b;
    background: linear-gradient(145deg, #ffffff, #f7faec);
    box-shadow: 0 10px 26px rgba(6, 35, 71, .10);
}
.rush-access__lock svg { width: 34px; height: 34px; }
.rush-access h1 {
    margin: 12px 0 24px;
    color: #071f4b;
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    letter-spacing: -.03em;
}
.rush-access__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 16px;
    align-items: stretch;
}
.rush-access__field {
    position: relative;
    min-width: 0;
}
.rush-access__field svg {
    position: absolute;
    left: 22px;
    top: 50%;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    color: #748298;
    pointer-events: none;
}
.rush-access__field input {
    width: 100%;
    height: 74px;
    padding: 0 22px 0 62px;
    border: 1px solid #cdd9e3;
    border-radius: 13px;
    outline: none;
    color: #10233d;
    background: rgba(255,255,255,.96);
    font-size: 1.08rem;
    font-weight: 650;
    letter-spacing: .03em;
    transition: border-color .18s, box-shadow .18s;
}
.rush-access__field input::placeholder { color: #9aa6b7; font-weight: 500; letter-spacing: 0; }
.rush-access__field input:focus {
    border-color: #13a8c5;
    box-shadow: 0 0 0 4px rgba(22,191,210,.13);
}
.rush-access__button {
    height: 74px;
    border: 0;
    border-radius: 13px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    color: #fff;
    background: linear-gradient(110deg, #8bc53f 0%, #1ba99b 48%, #0576c8 100%);
    box-shadow: 0 12px 24px rgba(5,118,200,.18);
    cursor: pointer;
    font-weight: 800;
    font-size: 1.08rem;
    transition: transform .18s, box-shadow .18s, filter .18s;
}
.rush-access__button:hover { transform: translateY(-2px); box-shadow: 0 16px 28px rgba(5,118,200,.24); filter: saturate(1.05); }
.rush-access__button:disabled { cursor: wait; opacity: .72; transform: none; }
.rush-access__button svg { width: 25px; height: 25px; }
.rush-access__help {
    margin: 26px 0 0;
    color: #627188;
    font-size: .98rem;
}
.rush-access__help::first-line { line-height: 1.5; }
.rush-access__alert { margin: -4px 0 18px; text-align: left; }
@media (max-width: 700px) {
    body.rush-home { background-attachment: scroll; background-position: center top; }
    .rush-home__content { width: min(100% - 24px, 560px); padding-top: 24px; justify-content: center; }
    .rush-home__logo { width: min(360px, 82vw); margin-bottom: 28px; }
    .rush-access { padding: 52px 20px 26px; border-radius: 22px; }
    .rush-access__lock { width: 68px; height: 68px; top: -34px; }
    .rush-access__lock svg { width: 30px; height: 30px; }
    .rush-access h1 { margin-bottom: 20px; }
    .rush-access__form { grid-template-columns: 1fr; gap: 12px; }
    .rush-access__field input, .rush-access__button { height: 62px; }
    .rush-access__help { margin-top: 20px; font-size: .9rem; }
}
@media (max-height: 720px) and (min-width: 701px) {
    .rush-home__content { padding-top: 22px; }
    .rush-home__logo { width: 330px; max-height: 220px; margin-bottom: 24px; }
    .rush-access { padding-top: 48px; }
}
