:root {
    --ink: #13222b;
    --muted: #60717b;
    --line: #dbe7ea;
    --paper: #f5fafb;
    --sea: #116d7b;
    --deep: #082b38;
    --danger: #b42318;
    --success: #207a4f;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
    letter-spacing: 0;
}

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

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

.auth-box {
    width: min(440px, 100%);
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.back-link {
    color: var(--sea);
    font-size: 14px;
    font-weight: 700;
}

h1,
h2,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 18px 0 8px;
    font-size: 28px;
}

h2 {
    margin: 0 0 16px;
    font-size: 21px;
}

p {
    color: var(--muted);
    line-height: 1.6;
}

form {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 13px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
}

textarea {
    resize: vertical;
    line-height: 1.55;
}

button {
    min-height: 46px;
    border: 0;
    border-radius: 6px;
    color: var(--white);
    background: var(--sea);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.alert,
.success {
    margin: 16px 0;
    padding: 12px 14px;
    border-radius: 6px;
    font-weight: 700;
}

.alert {
    color: var(--danger);
    background: #fff1ef;
}

.success {
    color: var(--success);
    background: #edf8f2;
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px clamp(18px, 4vw, 44px);
    border-bottom: 1px solid var(--line);
    background: rgba(245, 250, 251, 0.94);
    backdrop-filter: blur(14px);
}

.admin-header strong,
.admin-header span {
    display: block;
}

.admin-header span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.admin-header nav {
    display: flex;
    gap: 14px;
    color: var(--sea);
    font-weight: 800;
}

.admin-shell {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 28px 18px 56px;
}

.editor section {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

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

.hint {
    margin: -6px 0 12px;
    font-size: 13px;
}

.actions {
    position: sticky;
    bottom: 0;
    padding: 14px 0 0;
    background: linear-gradient(180deg, rgba(245, 250, 251, 0), var(--paper) 42%);
}

.actions button {
    width: 100%;
}

@media (max-width: 720px) {
    .admin-header,
    .grid {
        grid-template-columns: 1fr;
    }

    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

