:root {
    --brand: #0f6c7d;
    --brand-dark: #0a4e5c;
    --brand-soft: #e8f6f8;
    --accent: #f59e0b;
    --surface: #ffffff;
    --surface-2: #f7fbfc;
    --text: #1e293b;
    --muted: #5f6c7b;
    --border: #d8e6ea;
    --shadow: 0 18px 45px rgba(15, 108, 125, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #f7fbfc 0%, #eef6f8 100%);
    color: var(--text);
}

img {
    max-width: 100%;
    display: block;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
    padding: 12px 32px;
    background: var(--surface);
    border-bottom: 1px solid rgba(15, 108, 125, 0.12);
    box-shadow: 0 8px 25px rgba(15, 108, 125, 0.08);
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    text-decoration: none;
}

.logo {
    height: 100%;
    width: auto;
    max-height: 60px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: var(--brand-dark);
    font-weight: 700;
    padding: 10px 15px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--brand-soft);
    color: var(--brand);
    box-shadow: inset 0 0 0 1px rgba(15, 108, 125, 0.1);
}

.site-main {
    flex: 1;
    padding: 40px 20px;
}

.hero-card {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 24px;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: 0 22px 48px rgba(15, 108, 125, 0.14);
    overflow: hidden;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    background: linear-gradient(45deg,
        var(--accent) 0%,
        var(--brand) 30%,
        var(--brand-dark) 60%,
        var(--accent) 100%);
    background-size: 260% 260%;
    background-position: 0% 100%;
    opacity: 0;
    mix-blend-mode: overlay;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.hero-card:hover::after {
    opacity: 0.85;
    animation: hero-flow 5s ease-in-out infinite;
}

@keyframes hero-flow {
    0% {
        background-position: 0% 100%;
    }

    50% {
        background-position: 100% 0%;
    }

    100% {
        background-position: 0% 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-card:hover::after {
        animation: none;
        opacity: 0.4;
    }
}

.hero-copy,
.hero-panel,
.auth-card {
    padding: 36px;
}

.hero-copy {
    background: linear-gradient(145deg, #ffffff 0%, #f5fbfd 100%);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-copy h1,
.auth-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    color: var(--brand-dark);
}

.hero-copy p,
.subtitle {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(15, 108, 125, 0.22);
}

.btn-primary:hover {
    background: linear-gradient(180deg, var(--brand-dark) 0%, #083743 100%);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #fff;
    color: var(--brand-dark);
    border: 1px solid var(--border);
    box-shadow: 0 6px 16px rgba(15, 108, 125, 0.08);
}

.btn-secondary:hover {
    transform: translateY(-1px);
    background: var(--brand-soft);
}

.hero-panel {
    background: linear-gradient(180deg, var(--brand-dark) 0%, var(--brand) 100%);
    color: #fff;
    display: grid;
    gap: 18px;
    align-content: center;
}

.panel-stat {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 18px;
}

.panel-stat strong {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.panel-stat span {
    color: rgba(255, 255, 255, 0.85);
}

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: min(100%, 520px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 108, 125, 0.14);
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-form label {
    display: grid;
    gap: 8px;
}

.auth-form span {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--brand-dark);
}

.auth-form input {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--surface-2);
    padding: 14px 15px;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text);
}

.auth-form input:focus {
    outline: 2px solid rgba(15, 108, 125, 0.22);
    border-color: var(--brand);
}

.btn-full {
    width: 100%;
    margin-top: 6px;
}

.message {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
}

.message.error {
    background: #fff1f2;
    color: #b42318;
    border: 1px solid #fecdd3;
}

.message.success {
    background: #ecfdf5;
    color: #027a48;
    border: 1px solid #a7f3d0;
}

.register-text {
    margin-top: 18px;
    text-align: center;
    color: var(--muted);
}

.register-text a {
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
}

.site-footer {
    text-align: center;
    padding: 16px 20px 26px;
    color: var(--muted);
    font-size: 0.95rem;
    border-top: 1px solid rgba(15, 108, 125, 0.06);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.footer-nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--brand);
    text-decoration: underline;
}

.legal-main {
    display: flex;
    justify-content: center;
}

.legal-card {
    width: 100%;
    max-width: 860px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 108, 125, 0.14);
    padding: 40px;
}

.legal-card h1 {
    margin: 0 0 24px;
    color: var(--brand-dark);
}

.legal-content h2 {
    color: var(--brand-dark);
    font-size: 1.1rem;
    margin: 28px 0 10px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.7;
}

.legal-content a {
    color: var(--brand);
    font-weight: 700;
}

@media (max-width: 760px) {
    .legal-card {
        padding: 24px;
    }
}

@media (max-width: 760px) {
    .site-header {
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav {
        justify-content: center;
    }

    .hero-card {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .hero-panel,
    .auth-card {
        padding: 24px;
    }
}