@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --red: #E53935;
    --blue: #165DDB;
    --navy: #111827;
    --white: #FFFFFF;
    --gray: #F5F7FA;
    --text: #263247;
    --muted: #748094;
    --border: #E5EAF1;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--gray);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
}

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

.topbar {
    height: 72px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-family: 'Montserrat', sans-serif;
    font-size: 23px;
    font-weight: 900;
}

.brand strong {
    color: var(--red);
}

.brand-symbol {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--blue);
    border-radius: 12px;
}

.topbar nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-link,
.nav-user {
    color: var(--navy);
    font-size: 13px;
    font-weight: 600;
}

.main-container {
    min-height: calc(100vh - 170px);
}

.hero {
    padding: 85px 7% 70px;
    color: white;
    background:
        radial-gradient(circle at 85% 15%, #397BE7 0, transparent 32%),
        linear-gradient(125deg, #111827, #163B78);
}

.hero-content {
    max-width: 760px;
}

.eyebrow {
    color: var(--red);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero .eyebrow {
    color: #FFB5B3;
}

.hero h1 {
    margin: 18px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(48px, 8vw, 86px);
    line-height: 1.05;
    font-weight: 900;
}

.hero h1 span {
    color: #FF5550;
}

.hero-content > p {
    max-width: 570px;
    color: #DCE7F8;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 0 23px;
    border: 0;
    border-radius: 10px;
    background: var(--red);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.btn-outline {
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
}

.btn-small {
    min-height: 38px;
    padding: 0 17px;
}

.btn-block {
    width: 100%;
    margin-top: 12px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 65px;
}

.service-card {
    padding: 23px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 15px;
    background: rgba(255,255,255,.08);
}

.service-icon {
    font-size: 30px;
}

.service-card h3 {
    font-size: 14px;
}

.service-card p {
    color: #CFD9E8;
    font-size: 12px;
}

.join-section {
    padding: 65px 7%;
    text-align: center;
}

.join-section h2 {
    color: var(--navy);
    font-family: 'Montserrat', sans-serif;
}

.join-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 30px;
    text-align: left;
}

.join-card {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: white;
    color: var(--text);
    transition: .2s;
}

.join-card:hover {
    transform: translateY(-4px);
    border-color: var(--blue);
}

.join-card h3 {
    color: var(--navy);
}

.join-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.join-card span {
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    padding: 55px 18px;
}

.auth-card {
    width: 100%;
    max-width: 470px;
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: white;
    box-shadow: 0 15px 45px rgba(20, 40, 75, .06);
}

.auth-card h1 {
    margin: 10px 0;
    color: var(--navy);
    font-family: 'Montserrat', sans-serif;
}

.muted {
    color: var(--muted);
    font-size: 13px;
}

form label {
    display: block;
    margin: 17px 0 7px;
    color: var(--navy);
    font-size: 12px;
    font-weight: 600;
}

form input,
form select {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    background: white;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
}

form input:focus,
form select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(22,93,219,.09);
}

.auth-bottom {
    margin-top: 22px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

.alert {
    margin: 15px 0;
    padding: 13px 16px;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.7;
}

.alert-success {
    background: #E8F8EF;
    color: #167A42;
}

.alert-danger {
    background: #FFF0EF;
    color: #B42318;
}

.alert-warning {
    background: #FFF6E5;
    color: #946200;
}

.dashboard-welcome {
    max-width: 850px;
    margin: 55px auto;
    padding: 35px;
    border-radius: 17px;
    background: white;
    border: 1px solid var(--border);
}

.dashboard-welcome h1 {
    color: var(--navy);
    font-family: 'Montserrat', sans-serif;
}

.account-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.account-info div {
    padding: 17px;
    border-radius: 10px;
    background: var(--gray);
}

.account-info small,
.account-info strong {
    display: block;
}

.account-info small {
    color: var(--muted);
    margin-bottom: 7px;
}

.account-info strong {
    color: var(--navy);
    font-size: 13px;
}

.footer {
    padding: 30px 15px;
    text-align: center;
    background: white;
    border-top: 1px solid var(--border);
}

.footer-brand {
    color: var(--blue);
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 900;
}

.footer p,
.footer small {
    color: var(--muted);
    font-size: 11px;
}

@media (max-width: 760px) {
    .topbar {
        padding: 0 18px;
    }

    .hero {
        padding: 65px 22px 45px;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 40px;
    }

    .join-section {
        padding: 45px 18px;
    }

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

    .account-info {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 25px 20px;
    }
}

@media (max-width: 380px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}