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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.5;
}

/* ── Header ── */
header {
    background: #2c6e49;
    color: white;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.4rem;
}

header a {
    color: #a8d5b5;
    text-decoration: none;
    font-size: 0.9rem;
}

header a:hover {
    color: white;
}

.header-nav {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* ── Layout ── */
main {
    max-width: 800px;
    margin: 32px auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card h2 {
    font-size: 1.05rem;
    margin-bottom: 16px;
    color: #2c6e49;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

/* ── Forms ── */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
}

input,
select,
textarea {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2c6e49;
    box-shadow: 0 0 0 2px rgba(44,110,73,0.15);
}

textarea {
    resize: vertical;
    font-family: monospace;
    font-size: 0.9rem;
}

/* ── Buttons ── */
.btn {
    background: #2c6e49;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
}

.btn:hover {
    background: #245c3d;
}

.btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

.btn-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── Status messages ── */
.status {
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 4px;
    display: none;
}

.status.info {
    display: block;
    background: #e8f4fd;
    color: #1a6fa0;
}

.status.success {
    display: block;
    background: #e8f5e9;
    color: #2c6e49;
}

.status.error {
    display: block;
    background: #fdecea;
    color: #c0392b;
}

/* ── Login page ── */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.login-card {
    background: white;
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.login-card h1 {
    font-size: 1.3rem;
    color: #2c6e49;
    margin-bottom: 6px;
}

.login-card p {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.login-card .form-group {
    margin-bottom: 16px;
}

.login-card .btn {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
}

.login-error {
    background: #fdecea;
    color: #c0392b;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: none;
}
