/* Shared site styles */

:root {
    --brand-dark: #111111;
    --brand-dark-soft: #232323;
    --brand-amber: #d4af37;
    --brand-amber-soft: #f7edc8;
    --brand-blue: #1565c0;
    --brand-blue-soft: rgba(21, 101, 192, 0.12);
    --brand-green: #2e7d32;
    --brand-red: #c62828;
    --surface: rgba(255, 255, 255, 0.94);
    --surface-strong: #ffffff;
    --surface-muted: #f7f7f7;
    --text-main: #1d1d1d;
    --text-soft: #5c5c5c;
    --border-soft: rgba(17, 17, 17, 0.08);
    --shadow-soft: 0 20px 44px rgba(17, 17, 17, 0.12);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-pill: 999px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text-main);
    font-family: "Raleway", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(212, 175, 55, 0.18), transparent 24rem),
        linear-gradient(180deg, #f7f7f7 0%, #ececec 100%),
        url('../images/trees.jpeg') center/cover no-repeat fixed;
    background-attachment: fixed;
}

a {
    color: var(--brand-blue);
    text-decoration: none;
}

a:hover {
    opacity: 0.92;
}

img {
    max-width: 100%;
    height: auto;
}

.site-shell,
.dashboard-page,
.legal-page {
    min-height: 100vh;
    padding: 32px 18px;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        linear-gradient(rgba(17, 17, 17, 0.58), rgba(17, 17, 17, 0.52)),
        url('../images/trees.jpeg') center/cover no-repeat;
}

.page-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.shell-card,
.container,
.container-fluid,
.dashboard {
    width: min(100%, 1180px);
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.container {
    max-width: 520px;
    padding: 34px 28px;
}

.container-fluid,
.dashboard {
    padding: 28px;
}

.auth-card {
    max-width: 540px;
    position: relative;
    overflow: hidden;
}

.auth-card::before,
.shell-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0) 72%);
    pointer-events: none;
}

.page-header,
.auth-header {
    margin-bottom: 24px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: var(--brand-amber-soft);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-title,
.auth-title,
.container h2,
.dashboard h2 {
    margin: 0 0 10px;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.05;
    font-weight: 800;
    color: var(--brand-dark);
}

.page-subtitle,
.auth-subtitle,
.lead-copy {
    margin: 0;
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.7;
}

.hero-banner {
    margin-bottom: 24px;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.96), rgba(35, 35, 35, 0.9));
    color: #fff;
    box-shadow: 0 20px 40px rgba(17, 17, 17, 0.18);
}

.hero-banner .page-title,
.hero-banner .page-subtitle,
.hero-banner a,
.hero-banner p,
.hero-banner h1,
.hero-banner h2,
.hero-banner h3 {
    color: #fff;
}

.hero-actions,
.action-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.button-link,
button,
.button,
.approve-btn,
.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--brand-dark);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
}

.button-link:hover,
button:hover,
.button:hover,
.approve-btn:hover,
.home-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(17, 17, 17, 0.14);
}

.button-link.alt,
.button.alt {
    background: var(--brand-blue);
}

.button-link.soft,
.button.soft {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.home-btn {
    background: var(--brand-blue);
}

.small-btn {
    width: auto;
    min-height: 38px;
    padding: 8px 14px;
    font-size: 0.84rem;
}

.approve-btn {
    background: var(--brand-green);
}

.link,
.stack-links {
    margin-top: 18px;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.stack-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.message,
.flash-card,
.status-card {
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    line-height: 1.5;
}

.success {
    background: rgba(46, 125, 50, 0.12);
    color: #1d5d21;
    border: 1px solid rgba(46, 125, 50, 0.18);
}

.error {
    background: rgba(198, 40, 40, 0.1);
    color: #9f1f1f;
    border: 1px solid rgba(198, 40, 40, 0.18);
}

.warning {
    background: rgba(212, 175, 55, 0.16);
    color: #7b640f;
    border: 1px solid rgba(212, 175, 55, 0.24);
}

.form-group {
    margin-bottom: 18px;
}

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

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

label {
    display: block;
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: var(--surface-strong);
    font: inherit;
    color: var(--text-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(21, 101, 192, 0.48);
    box-shadow: 0 0 0 0.25rem rgba(21, 101, 192, 0.14);
}

.section-card,
.section,
.panel {
    margin-top: 20px;
    padding: 22px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #ffffff, #fafafa);
    box-shadow: 0 14px 30px rgba(17, 17, 17, 0.08);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.section-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
}

.section-copy {
    margin: 6px 0 0;
    color: var(--text-soft);
    line-height: 1.65;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 20px 0 10px;
}

.stat-card {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #fff, #f8f8f8);
    border: 1px solid var(--border-soft);
}

.stat-value {
    display: block;
    margin-bottom: 6px;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-dark);
}

.stat-label {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.5;
}

.table-container,
.table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-top: 16px;
    border-radius: var(--radius-md);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-strong);
}

th,
td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #ececec;
    vertical-align: top;
    font-size: 0.94rem;
}

th {
    background: var(--surface-muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.table-note,
.muted {
    color: var(--text-soft);
    font-size: 0.93rem;
}

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

.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.inline-form select,
.inline-form input,
.inline-form button {
    width: auto;
}

.top-links {
    margin: 16px 0 0;
}

.search-wrap {
    margin-top: 20px;
}

.search-wrap input {
    margin-top: 8px;
}

.wide {
    width: 100%;
}

.reset-url {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.legal-content {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    padding: 28px;
}

.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4 {
    margin: 0 0 12px;
    font-weight: 800;
    color: var(--brand-dark);
}

.legal-content p {
    margin: 0 0 16px;
    line-height: 1.75;
    color: var(--text-main);
}

.bgimg {
    background:
        linear-gradient(rgba(17, 17, 17, 0.58), rgba(17, 17, 17, 0.52)),
        url('../images/trees.jpeg') center/cover no-repeat;
}

@media (max-width: 768px) {
    .site-shell,
    .dashboard-page,
    .legal-page,
    .auth-page {
        padding: 16px;
    }

    .container,
    .container-fluid,
    .dashboard,
    .shell-card {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .hero-banner {
        padding: 22px 18px;
    }

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

    .inline,
    .inline-form,
    .action-links,
    .hero-actions,
    .stack-links {
        flex-direction: column;
        align-items: stretch;
    }

    .inline-form select,
    .inline-form input,
    .inline-form button,
    .button-link,
    .button,
    button,
    .approve-btn,
    .home-btn,
    .small-btn {
        width: 100%;
    }
}
