body {
    margin: 0;
    font-family: Arial, sans-serif;

}

.login-wrapper {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    width: 360px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.login-card h2 {
    margin-bottom: 5px;
    color: #0b3d2e;
}

.subtitle {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

label {
    display: block;
    text-align: left;
    font-size: 12px;
    margin-top: 15px;
    color: #555;
}

.input-field input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-top: 5px;
}

.password-row {
    position: relative;
}

.forgot {
    position: absolute;
    right: 0;
    top: -20px;
    font-size: 12px;
    color: #0b3d2e;
    text-decoration: none;
}

.remember {
    text-align: left;
    font-size: 13px;
    margin: 10px 0;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: #0b3d2e;
    color: white;
    border: none;
    border-radius: 10px;
    margin-top: 10px;
    cursor: pointer;
}

.divider {
    margin: 20px 0;
    font-size: 12px;
    color: #999;
}

.social-buttons {
    display: flex;
    gap: 10px;
}

.social-buttons button {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}

.google {
    background: #eee;
}

.apple {
    background: #0b3d2e;
    color: white;
}

.register {
    margin-top: 15px;
    font-size: 13px;
}

.auth-links-spaced {
    margin-top: 20px;
}

.message-form-note {
    margin-bottom: 18px;
    color: #475569;
}

.status-text-processed {
    color: #166534;
}

.status-text-read {
    color: #1d4ed8;
}

.status-text-unread {
    color: #b45309;
}

.message-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.message-toolbar-title {
    margin-bottom: 6px;
}

.message-toolbar-subtitle {
    margin: 0;
    color: #64748b;
}

.message-table-spacing {
    margin-top: 20px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.message-header-title {
    margin-bottom: 8px;
}

.message-header-meta {
    margin: 0;
    color: #64748b;
}

.message-status {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
}

.message-status-processed {
    background: #dcfce7;
    color: #166534;
}

.message-status-read {
    background: #dbeafe;
    color: #1d4ed8;
}

.message-status-unread {
    background: #fef3c7;
    color: #b45309;
}

.message-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

:root {
    --bg: #f7f3ea;
    --bg-soft: #fbf8f2;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-strong: #ffffff;
    --text: #173f2a;
    --muted: #67746d;
    --border: #e7dfd2;
    --accent: #d98c5f;
    --accent-soft: #f1e4d5;
    --button: #173f2a;
    --button-hover: #0e2b1d;
    --shadow: 0 18px 50px rgba(34, 31, 24, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 30%),
        radial-gradient(circle at bottom right, rgba(214, 226, 214, 0.55), rgba(214, 226, 214, 0) 28%),
        linear-gradient(180deg, #f8f4eb 0%, #f3efe4 100%);
    color: var(--text);
    font-family: Inter, Arial, Helvetica, sans-serif;
    min-height: 100vh;
}

body.auth-page {
    background: #f3f4f6;
}

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

.site-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 20px auto 36px;
    background: rgba(251, 248, 242, 0.84);
    border: 1px solid rgba(231, 223, 210, 0.95);
    box-shadow: var(--shadow);
    border-radius: 22px;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.main {
    min-height: 70vh;
}

.container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.flash-message,
.message {
    margin-top: 20px;
}

.flash-message.success,
.message.success {
    background: #ecf8ef;
    color: #1f5b3a;
    border: 1px solid #bde0c7;
    border-radius: 12px;
    padding: 14px 16px;
}

.flash-message.error,
.message.error {
    background: #fff0ed;
    color: #9f3f28;
    border: 1px solid #f1c4b7;
    border-radius: 12px;
    padding: 14px 16px;
}

.sc-topbar {
    background: #ffffff;
    border-bottom: 1px solid rgba(231, 223, 210, 0.9);
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.sc-brand a {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.sc-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.sc-nav a {
    padding: 9px 14px;
    border-radius: 10px;
    color: #5f6d65;
    font-size: 14px;
    font-weight: 600;
    transition: all .2s ease;
}

.sc-nav a:hover,
.sc-nav a.is-active {
    background: #f4efe6;
    color: var(--text);
}

.sc-search {
    flex: 1;
    min-width: 220px;
    max-width: 360px;
}

.sc-search form {
    position: relative;
    display: block;
    margin: 0;
}

.sc-search input {
    width: 100%;
    height: 42px;
    border: 1px solid #d7e0d3;
    border-radius: 999px;
    padding: 0 46px 0 16px;
    background: #f8faf7;
    outline: none;
    font-size: 14px;
    margin-bottom: 0;
}

.sc-search-submit {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 999px;
    background: #1d5c34;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.sc-search-submit:hover {
    background: #174728;
}

.sc-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sc-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

.sc-login {
    background: #eef5ee;
    color: #1d5c34;
}

.sc-contact {
    background: var(--button);
    color: #fff;
}

.sc-contact:hover {
    background: var(--button-hover);
    color: #fff;
}

.auth-shell {
    max-width: 520px;
    margin: 60px auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

.auth-shell h1 {
    margin-top: 0;
}

.auth-links a {
    margin-right: 10px;
}

.contact-page {
    max-width: 680px;
    margin: 28px auto 40px;
}

.contact-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.contact-top {
    padding: 24px 28px 16px;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    border-bottom: 1px solid #e5e7eb;
}

.contact-top h1 {
    margin: 0 0 8px;
    font-size: 2.2rem;
    color: #111827;
}

.contact-top p {
    margin: 0;
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 100%;
}

.contact-form-wrap {
    padding: 22px 28px 28px;
}

.contact-form-wrap .input {
    margin-bottom: 14px;
}

.contact-form-wrap label {
    font-weight: 700;
    color: #334155;
    font-size: 0.95rem;
}

.contact-form-wrap input,
.contact-form-wrap textarea {
    border-radius: 12px;
    border: 1px solid #dbe2ea;
    box-shadow: none;
}

.contact-form-wrap textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.contact-actions .button {
    margin-bottom: 0;
    border-radius: 12px;
    background: #173f2a;
    border-color: #173f2a;
}

.contact-actions .button:hover {
    background: #0e2b1d;
    border-color: #0e2b1d;
}

.contact-actions .secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #334155;
    font-weight: 700;
}

@media (max-width: 768px) {
    .site-shell {
        width: min(100%, calc(100% - 20px));
        margin: 10px auto 20px;
        border-radius: 16px;
    }

    .container {
        width: min(100%, calc(100% - 24px));
    }

    .sc-topbar {
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
    }

    .sc-search {
        max-width: none;
    }

    .sc-actions {
        justify-content: flex-start;
    }
}
