/* ==========================================================================
   PA HOME — Admin Panel
   ========================================================================== */

:root {
    --ink: #16181d;
    --ink-2: #4b4f58;
    --ink-3: #83878f;
    --paper: #f6f4f0;
    --white: #ffffff;
    --sand: #f2ede4;
    --bronze: #b07c42;
    --bronze-dark: #93642f;
    --bronze-soft: #f3e7d7;
    --line: rgba(22, 24, 29, 0.09);
    --line-strong: rgba(22, 24, 29, 0.16);
    --danger: #c0392b;
    --danger-soft: #fdeceb;
    --success: #1e8e5a;
    --success-soft: #e6f5ee;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --shadow-sm: 0 2px 10px rgba(22, 24, 29, 0.05);
    --shadow-md: 0 12px 32px rgba(22, 24, 29, 0.10);
    --shadow-lg: 0 24px 64px rgba(22, 24, 29, 0.18);

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

    --sidebar-w: 264px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

/* ------------------------------ Buttons ------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid transparent;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--bronze); color: #fff; box-shadow: 0 6px 18px rgba(176, 124, 66, 0.35); }
.btn-primary:hover { background: var(--bronze-dark); }

.btn-outline { border-color: var(--line-strong); color: var(--ink); background: var(--white); }
.btn-outline:hover { border-color: var(--ink); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #9c2d20; }

.btn-lg { padding: 0.95rem 1.8rem; font-size: 0.98rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.83rem; }
.btn-block { width: 100%; }

/* ------------------------------- Shell ------------------------------- */

.admin-shell { display: flex; min-height: 100vh; }

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    background: var(--ink);
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    flex-direction: column;
    padding: 1.6rem 1.2rem;
    z-index: 50;
    transition: transform 0.4s var(--ease);
}

.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    padding: 0.2rem 0.4rem;
}

.admin-brand em { font-style: normal; color: #e9bd85; }

.admin-brand small {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #e9bd85;
    background: rgba(233, 189, 133, 0.14);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill);
    vertical-align: middle;
    margin-left: 0.2rem;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.1);
    color: #e9bd85;
    font-size: 0.85rem;
    font-weight: 600;
    flex: none;
}

.admin-nav { margin-top: 2.4rem; display: grid; gap: 0.3rem; flex-grow: 1; align-content: start; }

.admin-nav-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    padding: 0 0.9rem 0.5rem;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.72rem 0.9rem;
    border-radius: 12px;
    transition: background 0.25s, color 0.25s, transform 0.3s var(--ease);
}

.admin-nav-link svg { width: 19px; height: 19px; flex: none; }

.admin-nav-link:hover { background: rgba(255, 255, 255, 0.07); color: #fff; transform: translateX(3px); }

.admin-nav-link.is-active {
    background: linear-gradient(100deg, rgba(176, 124, 66, 0.28), rgba(176, 124, 66, 0.12));
    color: #e9bd85;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
}

.admin-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bronze);
    color: #fff;
    font-weight: 800;
    flex: none;
}

.admin-user-info { min-width: 0; flex-grow: 1; }
.admin-user-info strong { display: block; font-size: 0.85rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-user-info span { display: block; font-size: 0.72rem; color: rgba(255, 255, 255, 0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.admin-logout {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    transition: background 0.25s, color 0.25s;
}

.admin-logout svg { width: 17px; height: 17px; }
.admin-logout:hover { background: rgba(192, 57, 43, 0.25); color: #ff9d8f; }

/* Main area */
.admin-main {
    flex-grow: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-topbar {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem 2.2rem 0;
}

.admin-topbar > div:nth-child(2) { flex-grow: 1; }

.admin-page-title { font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; line-height: 1.2; }
.admin-page-sub { font-size: 0.87rem; color: var(--ink-3); }

.admin-menu-btn {
    display: none;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1.5px solid var(--line-strong);
    border-radius: 12px;
    background: var(--white);
    color: var(--ink);
}

.admin-menu-btn svg { width: 20px; height: 20px; }

.admin-content { padding: 1.8rem 2.2rem 3rem; animation: contentIn 0.5s var(--ease-out-expo); }

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

/* ----------------------------- Stat cards ----------------------------- */

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.15rem 1.3rem;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.stat-card-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    flex: none;
}

.stat-card-icon svg { width: 22px; height: 22px; }

.icon-ink { background: rgba(22, 24, 29, 0.07); color: var(--ink); }
.icon-green { background: var(--success-soft); color: var(--success); }
.icon-grey { background: rgba(131, 135, 143, 0.14); color: var(--ink-3); }
.icon-bronze { background: var(--bronze-soft); color: var(--bronze-dark); }

.stat-card strong { display: block; font-family: var(--font-display); font-size: 1.55rem; font-weight: 500; line-height: 1.15; }
.stat-card span:last-child { font-size: 0.8rem; color: var(--ink-3); font-weight: 600; }

/* ------------------------------ Filters ------------------------------ */

.table-filters {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
}

.search-box { position: relative; display: flex; align-items: center; flex-grow: 1; max-width: 340px; }

.search-box svg {
    position: absolute;
    left: 0.9rem;
    width: 16px;
    height: 16px;
    color: var(--ink-3);
    pointer-events: none;
}

.search-box input {
    font-family: inherit;
    font-size: 0.9rem;
    width: 100%;
    border: 1.5px solid var(--line-strong);
    background: var(--white);
    border-radius: var(--radius-pill);
    padding: 0.62rem 1rem 0.62rem 2.5rem;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.search-box input:focus { outline: none; border-color: var(--bronze); box-shadow: 0 0 0 4px rgba(176, 124, 66, 0.13); }

.table-filters select {
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1.5px solid var(--line-strong);
    background: var(--white);
    border-radius: var(--radius-pill);
    padding: 0.6rem 1rem;
    cursor: pointer;
}

.table-filters select:focus { outline: none; border-color: var(--bronze); }

/* ------------------------------- Table ------------------------------- */

.table-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

.data-table { width: 100%; border-collapse: collapse; min-width: 860px; }

.data-table thead th {
    text-align: left;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    background: var(--paper);
    padding: 0.85rem 1.2rem;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.data-table tbody td {
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.data-table tbody tr { transition: background 0.2s; }
.data-table tbody tr:hover { background: rgba(242, 237, 228, 0.45); }
.data-table tbody tr:last-child td { border-bottom: none; }

.th-center { text-align: center !important; }
.th-right { text-align: right !important; }

.cell-product { display: flex; align-items: center; gap: 0.9rem; min-width: 260px; }

.cell-product img {
    width: 58px;
    height: 44px;
    object-fit: cover;
    border-radius: 9px;
    background: var(--sand);
    flex: none;
}

.cell-product strong { display: block; font-size: 0.92rem; line-height: 1.3; }
.cell-product span { display: block; font-size: 0.78rem; color: var(--ink-3); }

.tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--sand);
    color: var(--ink-2);
    padding: 0.28rem 0.7rem;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.cell-price { font-weight: 700; white-space: nowrap; font-size: 0.9rem; }
.cell-views { color: var(--ink-3); font-weight: 600; font-size: 0.88rem; }

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.status i { width: 7px; height: 7px; border-radius: 50%; }

.status-published { background: var(--success-soft); color: var(--success); }
.status-published i { background: var(--success); }

.status-draft { background: rgba(131, 135, 143, 0.14); color: var(--ink-2); }
.status-draft i { background: var(--ink-3); }

.star-toggle {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--ink-3);
    transition: background 0.25s, color 0.25s, transform 0.3s var(--ease);
}

.star-toggle svg { width: 19px; height: 19px; }
.star-toggle:hover { background: var(--bronze-soft); color: var(--bronze-dark); transform: scale(1.1); }
.star-toggle.is-on { color: var(--bronze); }

.row-actions { display: flex; justify-content: flex-end; gap: 0.3rem; }

.row-btn {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--white);
    color: var(--ink-2);
    transition: all 0.25s var(--ease);
}

.row-btn svg { width: 15px; height: 15px; }
.row-btn:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.row-btn-danger:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }

.table-empty { text-align: center; padding: 3rem 1rem; display: grid; gap: 0.9rem; justify-items: center; color: var(--ink-3); }

.table-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
    font-size: 0.85rem;
    color: var(--ink-3);
}

.table-foot .pagination { margin: 0; }

.pagination { display: flex; align-items: center; gap: 0.4rem; }

.page-btn {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.5rem;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--ink-2);
    background: var(--white);
    border: 1.5px solid var(--line-strong);
    transition: all 0.25s var(--ease);
}

.page-btn svg { width: 15px; height: 15px; }
.page-btn:hover:not(.is-disabled):not(.is-current) { border-color: var(--ink); color: var(--ink); }
.page-btn.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-btn.is-disabled { opacity: 0.35; pointer-events: none; }
.page-dots { color: var(--ink-3); }

/* ------------------------------- Form ------------------------------- */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 1.4rem;
    align-items: start;
}

.form-main, .form-side { display: grid; gap: 1.4rem; }

.form-side { position: sticky; top: 1.5rem; }

.form-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
}

.form-card h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--line);
}

.field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.field:last-child { margin-bottom: 0; }

.field label { font-size: 0.84rem; font-weight: 700; }
.field label b { color: var(--danger); }

.field input,
.field textarea,
.field select {
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--ink);
    background: var(--paper);
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 0.72rem 0.95rem;
    width: 100%;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--bronze);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(176, 124, 66, 0.13);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.field-hint { font-size: 0.78rem; color: var(--ink-3); }
.field-hint code { background: var(--sand); padding: 0.05rem 0.4rem; border-radius: 5px; font-size: 0.75rem; }

.field-error { font-size: 0.79rem; color: var(--danger); font-weight: 600; }

.form-alert {
    display: flex;
    gap: 0.9rem;
    background: var(--danger-soft);
    border: 1px solid rgba(192, 57, 43, 0.25);
    color: #8e2b1f;
    border-radius: var(--radius);
    padding: 1.1rem 1.3rem;
    margin-bottom: 1.4rem;
    font-size: 0.88rem;
}

.form-alert svg { width: 22px; height: 22px; flex: none; }
.form-alert ul { margin-top: 0.3rem; padding-left: 1.1rem; list-style: disc; }

/* Upload zone */
.upload-zone {
    position: relative;
    border: 2px dashed var(--line-strong);
    border-radius: var(--radius);
    background: var(--paper);
    min-height: 170px;
    display: grid;
    place-items: center;
    overflow: hidden;
    transition: border-color 0.25s, background 0.25s;
}

.upload-zone:hover, .upload-zone.is-drag { border-color: var(--bronze); background: var(--bronze-soft); }

.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

.upload-preview {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: none;
}

.upload-preview.has-image { display: block; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }

.upload-preview.has-image::after {
    content: 'Klik untuk mengganti';
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(transparent, rgba(22, 24, 29, 0.75));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    padding: 2rem 0 0.7rem;
}

.upload-copy { display: grid; justify-items: center; gap: 0.2rem; padding: 1.6rem; text-align: center; z-index: 0; }
.upload-copy svg { width: 30px; height: 30px; color: var(--bronze); margin-bottom: 0.4rem; }
.upload-copy strong { font-size: 0.9rem; }
.upload-copy span { font-size: 0.78rem; color: var(--ink-3); }

.file-plain { font-size: 0.85rem; }

/* Switch */
.switch-field { display: flex; align-items: flex-start; gap: 0.8rem; cursor: pointer; margin-top: 0.4rem; }

.switch-field input[type="checkbox"] { position: absolute; opacity: 0; }

.switch {
    flex: none;
    width: 44px;
    height: 25px;
    border-radius: var(--radius-pill);
    background: var(--line-strong);
    position: relative;
    transition: background 0.3s;
    margin-top: 0.1rem;
}

.switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s var(--ease);
}

.switch-field input:checked + .switch { background: var(--bronze); }
.switch-field input:checked + .switch::after { transform: translateX(19px); }
.switch-field input:focus-visible + .switch { box-shadow: 0 0 0 4px rgba(176, 124, 66, 0.2); }

.switch-label strong { display: block; font-size: 0.88rem; }
.switch-label small { font-size: 0.78rem; color: var(--ink-3); }

.form-actions { display: grid; gap: 0.7rem; }

/* ------------------------------- Modal ------------------------------- */

.modal { position: fixed; inset: 0; z-index: 300; display: none; }
.modal.is-open { display: block; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22, 24, 29, 0.55);
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; } }

.modal-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(420px, calc(100vw - 2.5rem));
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.45s var(--ease-out-expo);
}

@keyframes modalIn {
    from { opacity: 0; transform: translate(-50%, -46%) scale(0.94); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.modal-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--danger-soft);
    color: var(--danger);
    margin: 0 auto 1.1rem;
}

.modal-icon svg { width: 26px; height: 26px; }

.modal-card h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; margin-bottom: 0.5rem; }
.modal-card p { font-size: 0.9rem; color: var(--ink-2); }

.modal-actions { display: flex; justify-content: center; gap: 0.7rem; margin-top: 1.6rem; }

/* ------------------------------- Toast ------------------------------- */

.toast {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    z-index: 400;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: var(--ink);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.95rem 1.3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: min(420px, calc(100vw - 2.8rem));
    animation: toastIn 0.55s var(--ease-out-expo);
    transition: opacity 0.4s, transform 0.4s var(--ease);
}

.toast svg { width: 20px; height: 20px; flex: none; color: #7fd8a5; }
.toast-error svg { color: #ff9d8f; }
.toast.is-hiding { opacity: 0; transform: translateY(12px); }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ------------------------------- Login ------------------------------- */

.login-page { min-height: 100vh; }

.login-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }

.login-visual { position: relative; overflow: hidden; background: var(--ink); }

.login-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: loginZoom 18s var(--ease) infinite alternate;
}

@keyframes loginZoom { from { transform: scale(1); } to { transform: scale(1.1); } }

.login-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(15deg, rgba(13, 14, 18, 0.88) 15%, rgba(13, 14, 18, 0.3) 70%);
}

.login-quote {
    position: absolute;
    left: 3rem;
    right: 3rem;
    bottom: 3rem;
    color: #fff;
}

.login-quote p {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

.login-quote em { font-style: italic; color: #e9bd85; }
.login-quote span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); }

.login-form-side { display: grid; place-items: center; padding: 2.5rem 1.5rem; background: var(--paper); }

.login-box { width: min(400px, 100%); animation: contentIn 0.6s var(--ease-out-expo); }

.login-box h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.9rem;
    margin-top: 2.2rem;
    line-height: 1.2;
}

.login-sub { color: var(--ink-3); font-size: 0.92rem; margin-top: 0.3rem; }

.login-form { margin-top: 1.8rem; }

.remember {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink-2);
    cursor: pointer;
    margin-bottom: 1.4rem;
}

.remember input { accent-color: var(--bronze); width: 16px; height: 16px; }

.login-hint {
    margin-top: 1.6rem;
    font-size: 0.82rem;
    color: var(--ink-3);
    background: var(--sand);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    text-align: center;
}

.login-hint code { font-weight: 700; color: var(--bronze-dark); }

.login-back {
    display: inline-block;
    margin-top: 1.4rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--ink-2);
    transition: color 0.25s, transform 0.3s var(--ease);
}

.login-back:hover { color: var(--bronze-dark); transform: translateX(-3px); }

/* --------------------------- Responsiveness --------------------------- */

@media (max-width: 1080px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-side { position: static; }
}

@media (max-width: 900px) {
    .admin-sidebar { transform: translateX(-100%); box-shadow: none; }
    .admin-sidebar.is-open { transform: translateX(0); box-shadow: var(--shadow-lg); }
    .admin-main { margin-left: 0; }
    .admin-menu-btn { display: grid; }
    .admin-topbar { padding: 1.2rem 1.2rem 0; }
    .admin-content { padding: 1.4rem 1.2rem 2.5rem; }
    .login-split { grid-template-columns: 1fr; }
    .login-visual { display: none; }
}

@media (max-width: 560px) {
    .field-row { grid-template-columns: 1fr; }
    .admin-topbar-actions .btn { padding: 0.6rem 0.9rem; font-size: 0.82rem; }
}

/* --------------------------- Reduced motion --------------------------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
