* {
    box-sizing: border-box;
}

:root {
    --bg: #f3f6fb;
    --surface: #ffffff;
    --surface-soft: #f7faff;
    --text: #1e293b;
    --muted: #475569;
    --primary: #00bfd8;
    --primary-dark: #0097c0;
    --accent: #ff9c22;
    --warm: #ff6b3d;
    --fresh: #00c9a7;
    --border: #d6e1f0;
    --shadow: 0 14px 30px rgba(49, 88, 160, 0.09);
    --inner-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    --radius-lg: 18px;
    --radius-md: 14px;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: radial-gradient(circle at top right, #eaf1ff 0%, var(--bg) 45%, #f7f9fd 100%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}

.container {
    width: min(1080px, 92%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.brand {
    text-decoration: none;
    color: #12346f;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

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

.site-nav .btn a{
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 500;
}

.site-nav a{
    text-decoration: none;
    font-weight: 500;
}


.site-nav-authenticated a {
    text-decoration: none;
    color: #12346f;
    font-weight: 500;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 18px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 4px 0 rgba(0, 151, 192, 0.2);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 151, 192, 0.26);
    background: linear-gradient(135deg, #00a9ca, #0086b0);
}

.btn-sm {
    padding: 8px 14px;
    border-radius: 9px;
}

.btn-light {
    background: #ffffff;
    color: #1f3f80;
    border: 1px solid #cfdbf3;
    box-shadow: none;
}

.btn-light:hover {
    box-shadow: 0 8px 18px rgba(54, 90, 170, 0.16);
}

.panel,
.hero,
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    box-shadow: var(--shadow), var(--inner-shadow);
    padding: 22px;
    margin-bottom: 18px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 30px;
    background: linear-gradient(140deg, #fefefe, #f3f7ff 58%, #eaf0ff);
}

.hero::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    right: -40px;
    top: -40px;
    background: radial-gradient(circle, rgba(0, 191, 216, 0.22), rgba(0, 191, 216, 0));
    pointer-events: none;
}

.hero-kicker {
    display: inline-block;
    font-size: 0.83rem;
    font-weight: 700;
    color: #0086b0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.hero h1 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 2rem;
}

.highlights {
    margin-bottom: 16px;
}

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

.feature-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow), var(--inner-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 26px rgba(34, 83, 170, 0.14), var(--inner-shadow);
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
}

.feature-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #e9fbff;
    color: #0084a8;
    margin-bottom: 10px;
    border: 1px solid #bfeef7;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

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

.section-header {
    margin-bottom: 12px;
}

.section-header h2 {
    margin: 0;
}

.section-header p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.card-title {
    margin-top: 0;
    margin-bottom: 8px;
}

.meta {
    color: var(--muted);
}

.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.card {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
}

.field {
    margin-bottom: 14px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1px solid #c8d5eb;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fbfdff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: 2px solid rgba(38, 92, 207, 0.2);
    border-color: var(--primary);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
}

.messages {
    list-style: none;
    padding: 0;
}

.msg {
    margin-bottom: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.msg.success {
    background: #ecfdf3;
    color: #166534;
    border-color: #b7e8c6;
}

.msg.error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #f7c8c8;
}

.text-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    letter-spacing: 0.02em;
}

.badge-info {
    background: #e8fbff;
    color: #007ea5;
}

.badge-success {
    background: #e8fbf6;
    color: #0b8f74;
}

.badge-danger {
    background: #fff1eb;
    color: #b54a20;
}

.badge-neutral {
    background: #edf0f5;
    color: #334155;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
}

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

th {
    background: #f5f8ff;
    color: #31405c;
    font-size: 0.9rem;
    font-weight: 700;
}

tbody tr:hover {
    background: #fbfdff;
}

.site-footer {
    margin-top: 28px;
    border-top: 1px solid var(--border);
    background: #fff;
    padding: 18px 0 26px;
}

.site-footer a {
    color: #344c77;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.auth-panel,
.form-panel {
    max-width: 760px;
    margin-inline: auto;
}

@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .hero {
        padding: 22px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

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

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}
