* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #087f8c;
    --primary-dark: #05636d;
    --text: #18333b;
    --muted: #647780;
    --background: #f5fafb;
    --white: #ffffff;
    --border: #dce9eb;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

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

.navbar {
    min-height: 84px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 16px 7%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--primary);
    border-radius: 12px;
    font-size: 30px;
    font-weight: bold;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 17px;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
}

.nav-links,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    font-size: 14px;
    color: var(--muted);
}

.nav-links a:hover {
    color: var(--primary);
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 11px 18px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary {
    color: var(--white);
    background: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: var(--white);
    border-color: var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-large {
    padding: 14px 22px;
}

.btn-light {
    background: white;
    color: var(--primary-dark);
}

.hero {
    min-height: 510px;
    padding: 80px 9%;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 50px;
    overflow: hidden;
    background: linear-gradient(125deg, #f2fbfc, #e5f5f5);
}

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

.eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero h1 {
    max-width: 600px;
    font-size: clamp(40px, 5vw, 62px);
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 22px;
}

.hero h1 span {
    color: var(--primary);
}

.hero-content > p {
    max-width: 560px;
    color: var(--muted);
    font-size: 17px;
    margin-bottom: 28px;
}

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

.hero-note {
    margin-top: 25px;
    font-size: 12px;
    color: var(--muted);
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #20a878;
    border-radius: 50%;
    margin-right: 7px;
}

.hero-visual {
    min-height: 320px;
    position: relative;
    display: grid;
    place-items: center;
}

.medical-symbol {
    width: 230px;
    height: 230px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--primary);
    font-size: 150px;
    font-weight: 300;
    box-shadow: 0 25px 60px #087f8c30;
    z-index: 1;
}

.visual-card {
    position: absolute;
    z-index: 2;
    bottom: 18px;
    right: 0;
    width: min(310px, 95%);
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 15px 40px #123d4612;
}

.visual-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: white;
    background: #1aa77b;
    border-radius: 50%;
}

.visual-card strong {
    font-size: 14px;
}

.visual-card p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 5px;
}

.visual-decoration {
    position: absolute;
    width: 70px;
    height: 70px;
    border: 2px solid #8ecdd0;
    border-radius: 20px;
    transform: rotate(25deg);
}

.decoration-one {
    top: 15px;
    right: 20px;
}

.decoration-two {
    bottom: 25px;
    left: 10px;
    width: 45px;
    height: 45px;
}

.section {
    padding: 85px 9%;
}

.section-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 40px;
}

.section-heading h2,
.about h2 {
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.2;
    margin-bottom: 12px;
}

.section-heading p,
.about > p {
    color: var(--muted);
}

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

.service-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px #123d4610;
}

.service-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    background: #e9f7f7;
    border-radius: 13px;
    font-size: 25px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 19px;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.service-card a {
    color: var(--primary);
    font-size: 13px;
    font-weight: bold;
}

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 55px;
    background: var(--background);
}

.about > p {
    line-height: 1.9;
}

.cta {
    text-align: center;
    padding: 65px 20px;
    color: white;
    background: var(--primary);
}

.cta h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.cta p {
    margin-bottom: 24px;
    color: #e1f5f5;
}

.footer {
    padding: 35px 20px;
    text-align: center;
    background: #f7fafb;
    color: var(--muted);
    font-size: 13px;
}

.footer-brand {
    color: var(--text);
    font-size: 17px;
    font-weight: bold;
}

.copyright {
    margin-top: 8px;
    font-size: 12px;
}

/* Shared form styles for login and registration pages */

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px 16px;
    background: linear-gradient(135deg, #edf9fa, #f8fbfc);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 35px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 15px 45px #123d4610;
}

.auth-card h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--muted);
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #cbdcdf;
    border-radius: 8px;
    font: inherit;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px #087f8c18;
}

.full-width {
    width: 100%;
}

.notice {
    padding: 12px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: #e8f6ed;
    color: #17663c;
    font-size: 14px;
}

.error {
    padding: 12px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: #fff0f0;
    color: #a52222;
    font-size: 14px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--muted);
    font-size: 14px;
}

.auth-footer a,
.text-link {
    color: var(--primary);
    font-weight: bold;
}

.dashboard {
    min-height: 100vh;
    background: var(--background);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 20px 7%;
    background: white;
    border-bottom: 1px solid var(--border);
}

.dashboard-content {
    padding: 45px 7%;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

@media (max-width: 850px) {
    .navbar {
        flex-wrap: wrap;
        padding: 16px 5%;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 20px;
    }

    .nav-actions {
        gap: 8px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 60px 7%;
    }

    .hero-visual {
        min-height: 300px;
    }

    .service-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .brand strong {
        font-size: 14px;
    }

    .brand small {
        font-size: 10px;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
    }

    .nav-actions .btn {
        padding: 9px 10px;
        font-size: 12px;
    }

    .nav-links {
        font-size: 13px;
    }

    .hero {
        padding: 45px 6%;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-content > p {
        font-size: 15px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section {
        padding: 60px 6%;
    }

    .medical-symbol {
        width: 180px;
        height: 180px;
        font-size: 115px;
    }

    .visual-card {
        right: 0;
        bottom: 0;
    }

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

    .dashboard-header {
        padding: 18px 5%;
    }

    .dashboard-content {
        padding: 30px 5%;
    }
}
