@font-face {
    font-display: swap;
    font-family: "Sono";
    font-style: normal;
    font-weight: 200 800;
    src: url("../fonts/Sono/static/Sono_Proportional-Regular.ttf") format("truetype");
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f4f6f8;
    color: #1f2933;
    font-family: "Sono", Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.login-body {
    align-items: center;
    display: grid;
    min-height: 100vh;
    padding: 18px;
}

.login-shell {
    margin: 0 auto;
    max-width: 440px;
    width: 100%;
}

.login-panel {
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    padding: 28px;
}

.login-kicker {
    color: #0f766e;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.login-panel h1 {
    margin: 0 0 20px;
}

.login-form {
    display: grid;
    gap: 16px;
}

a {
    color: #0f766e;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.topbar {
    background: #17202a;
    color: #ffffff;
    padding: 22px 32px;
}

.topbar h1 {
    margin: 0 0 14px;
    font-size: 26px;
}

.topbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topbar nav a {
    background: #263544;
    border-radius: 6px;
    color: #ffffff;
    padding: 8px 12px;
}

.container {
    margin: 0 auto;
    max-width: 1120px;
    padding: 28px 18px;
}

.panel {
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    padding: 24px;
}

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

.panel-title h2,
.panel h2 {
    margin: 0 0 16px;
}

.panel-title h2 {
    margin-bottom: 0;
}

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

.form-grid .full {
    grid-column: 1 / -1;
}

label {
    color: #334e68;
    display: grid;
    font-weight: 700;
    gap: 6px;
}

input,
select,
textarea {
    border: 1px solid #bcccdc;
    border-radius: 6px;
    color: #1f2933;
    font: inherit;
    padding: 10px 12px;
    width: 100%;
}

textarea {
    resize: vertical;
}

button,
.button {
    background: #0f766e;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    padding: 10px 14px;
}

button:disabled {
    background: #9aa6b2;
    cursor: not-allowed;
}

.button:hover {
    text-decoration: none;
}

.button-light {
    background: #e4e7eb;
    color: #1f2933;
}

.button-small {
    font-size: 14px;
    padding: 6px 10px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid #e4e7eb;
    padding: 12px;
    text-align: left;
}

th {
    background: #f7f9fb;
    color: #334e68;
}

.status {
    border-radius: 999px;
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 9px;
    text-transform: capitalize;
}

.status-active {
    background: #d8f3dc;
    color: #1b4332;
}

.status-inactive {
    background: #ffe3e3;
    color: #9b1c1c;
}

.notice {
    border-radius: 6px;
    margin-bottom: 14px;
    padding: 12px 14px;
}

.notice-error {
    background: #ffe3e3;
    color: #9b1c1c;
}

.notice-success {
    background: #d8f3dc;
    color: #1b4332;
}

.generated-link {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.generated-link input {
    flex: 1;
}

.image-picker {
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    padding: 18px;
}

.image-picker-header h3 {
    margin: 0 0 4px;
}

.image-picker-header p {
    color: #52616b;
    margin: 0 0 16px;
}

.image-picker-controls {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    margin-bottom: 14px;
}

.image-picker-message {
    color: #52616b;
    font-size: 14px;
    margin: 8px 0 12px;
}

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

.image-option {
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    text-align: left;
}

.image-option.is-selected {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

.image-option img {
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    width: 100%;
}

.image-option span {
    color: #334e68;
    display: block;
    font-size: 12px;
    overflow: hidden;
    padding: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .topbar {
        padding: 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 18px;
    }

    .panel-title,
    .generated-link {
        align-items: stretch;
        flex-direction: column;
    }

    .image-picker-controls {
        grid-template-columns: 1fr;
    }
}
