:root {
    --bg: #f8f4f2;
    --surface: rgba(255,255,255,.88);
    --text: #292323;
    --muted: #8d8180;
    --accent: #ad7d76;
    --accent-dark: #8c625d;
    --border: rgba(89,67,65,.10);
    --shadow: 0 24px 70px rgba(73,50,48,.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top right, #eee1dd 0, transparent 35%),
        radial-gradient(circle at bottom left, #f1e5e1 0, transparent 32%),
        var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-shell {
    width: min(430px, 100%);
}

.brand {
    text-align: center;
    margin-bottom: 30px;
}

.brand-mark {
    width: 74px;
    height: 74px;
    margin: 0 auto 15px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: linear-gradient(145deg, #b98a83, #8f635e);
    color: white;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 18px 45px rgba(120,80,74,.25);
}

.brand h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 34px;
    font-weight: 500;
}

.brand p {
    margin: 6px 0 0;
    color: var(--muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 11px;
}

.login-card {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    border-radius: 30px;
    padding: 32px;
}

.login-card h2 {
    margin: 0;
    font-size: 26px;
}

.subtitle {
    margin-top: 8px;
    margin-bottom: 28px;
    color: var(--muted);
}

label {
    display: block;
    margin: 17px 0 7px;
    font-size: 13px;
    font-weight: 600;
}

input {
    width: 100%;
    border: 1px solid var(--border);
    background: white;
    border-radius: 16px;
    padding: 15px 16px;
    font-size: 16px;
    outline: none;
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(173,125,118,.10);
}

button {
    width: 100%;
    margin-top: 25px;
    border: 0;
    border-radius: 18px;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(141,95,90,.25);
}

.error {
    margin: 18px 0;
    background: #fff0ef;
    color: #9c4440;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 13px;
}

.topbar {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar strong {
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 500;
}

.topbar span {
    margin-left: 8px;
    color: var(--muted);
    font-size: 12px;
}

.logout {
    font-size: 13px;
    color: var(--muted);
}

.dashboard {
    max-width: 920px;
    margin: 0 auto;
    padding: 48px 22px 80px;
}

.hero {
    margin-bottom: 32px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
    font-weight: 700;
}

.hero h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(34px, 7vw, 52px);
    font-weight: 500;
}

.hero > p:last-child {
    color: var(--muted);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.action-card {
    min-height: 170px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow: 0 15px 40px rgba(73,50,48,.07);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform .2s ease, box-shadow .2s ease;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(73,50,48,.12);
}

.action-card.primary {
    background: linear-gradient(145deg, #b98b84, #91645f);
    color: white;
}

.icon {
    font-size: 30px;
}

.action-card h2 {
    margin: 15px 0 3px;
    font-family: Georgia, serif;
    font-weight: 500;
}

.action-card p {
    margin: 0;
    opacity: .72;
    font-size: 13px;
}

.status-card {
    margin-top: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 24px;
}

.status-card h3 {
    margin: 0 0 18px;
}

.status-line {
    display: flex;
    justify-content: space-between;
    padding: 13px 0;
    border-top: 1px solid var(--border);
}

.status {
    font-size: 12px;
    font-weight: 700;
}

.status.ready {
    color: #40805b;
}

.status.pending {
    color: #a57d38;
}

@media (max-width: 700px) {
    .action-grid {
        grid-template-columns: 1fr;
    }

    .action-card {
        min-height: 125px;
    }

    .topbar span {
        display: none;
    }
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    cursor: pointer;
    font-weight: 500;
    color: var(--muted);
}

.remember-row input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent);
}

.upload-card {
    text-align: center;
}

.upload-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 120px;
    border: 2px dashed rgba(173,125,118,.35);
    border-radius: 24px;
    background: rgba(255,255,255,.55);
    cursor: pointer;
    color: var(--accent-dark);
    font-size: 17px;
    font-weight: 700;
}

.upload-icon {
    font-size: 28px;
}

.upload-help {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.preview-card {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    background: #eee;
}

.preview-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-number {
    position: absolute;
    left: 8px;
    bottom: 8px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0,0,0,.65);
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.preview-remove {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.65);
    box-shadow: none;
    font-size: 20px;
    line-height: 1;
}

@media (max-width: 700px) {
    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cover-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

.preview-controls {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.move-button {
    width: 32px;
    height: 30px;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.55);
    background: rgba(255,255,255,.68);
    color: var(--text);
    box-shadow: 0 3px 10px rgba(0,0,0,.10);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 15px;
    font-weight: 700;
}

.move-button:disabled {
    opacity: .35;
}

.preview-number {
    left: 8px;
    bottom: 48px;
}

