* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #eef2f8;
    --text: #172033;
    --muted: #667085;
    --primary: #183b70;
    --primary-dark: #10294f;
    --accent: #d6a84f;
    --border: #dfe4ec;
    --shadow: 0 20px 50px rgba(20, 35, 60, 0.10);
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================
   HEADER
   ========================= */

.site-header {
    width: 100%;
    min-height: 82px;
    padding: 16px 6%;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary);
    color: #ffffff;

    font-size: 24px;
    font-weight: 800;

    box-shadow: 0 8px 20px rgba(24, 59, 112, 0.22);
}

.brand h1 {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 750;
}

.brand p {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.main-nav a {
    color: #475467;
    font-size: 14px;
    font-weight: 600;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.main-nav a:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.main-nav .nav-button {
    padding: 11px 18px;
    border-radius: 9px;

    background: var(--primary);
    color: #ffffff;
}

.main-nav .nav-button:hover {
    background: var(--primary-dark);
    color: #ffffff;
}


/* =========================
   HERO
   ========================= */

.hero {
    width: min(1180px, 88%);
    margin: 0 auto;

    min-height: 560px;

    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 70px;
}

.hero-content {
    padding: 65px 0;
}

.eyebrow {
    display: inline-block;

    margin-bottom: 18px;

    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.hero h2 {
    max-width: 720px;

    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.08;
    letter-spacing: -2.2px;
    font-weight: 800;
}

.hero h2 span {
    color: var(--primary);
}

.hero-content > p {
    max-width: 650px;

    margin-top: 25px;

    color: var(--muted);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-top: 34px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 0 22px;

    border-radius: 9px;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.primary-button {
    background: var(--primary);
    color: #ffffff;

    box-shadow: 0 10px 24px rgba(24, 59, 112, 0.20);
}

.primary-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.secondary-button {
    background: #ffffff;
    color: var(--primary);
    border: 1px solid var(--border);
}

.secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 35, 60, 0.08);
}


/* =========================
   SECURITY CARD
   ========================= */

.hero-card {
    padding: 38px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 20px;

    box-shadow: var(--shadow);
}

.security-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 22px;

    border-radius: 50%;

    background: #edf4ff;
    color: var(--primary);

    font-size: 28px;
    font-weight: 800;
}

.hero-card h3 {
    font-size: 25px;
    margin-bottom: 10px;
}

.hero-card > p {
    color: var(--muted);
    margin-bottom: 24px;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 12px 0;

    border-top: 1px solid var(--border);

    color: #475467;
    font-size: 14px;
    font-weight: 600;
}

.security-item span {
    color: var(--primary);
    font-weight: 900;
}


/* =========================
   FEATURES
   ========================= */

.features {
    padding: 95px 6% 105px;

    background: #ffffff;

    border-top: 1px solid var(--border);
}

.section-heading {
    width: min(760px, 100%);
    margin: 0 auto 48px;

    text-align: center;
}

.section-heading h2 {
    font-size: 38px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.section-heading p {
    margin-top: 15px;
    color: var(--muted);
}

.feature-grid {
    width: min(1180px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.feature-card {
    padding: 30px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 15px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(20, 35, 60, 0.08);
}

.feature-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 22px;

    border-radius: 9px;

    background: var(--surface-soft);
    color: var(--primary);

    font-size: 12px;
    font-weight: 800;
}

.feature-card h3 {
    font-size: 19px;
    margin-bottom: 9px;
}

.feature-card p {
    color: var(--muted);
    font-size: 14px;
}


/* =========================
   FOOTER
   ========================= */

.site-footer {
    padding: 35px 6%;

    background: #111827;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-footer strong {
    font-size: 14px;
}

.site-footer p {
    margin-top: 4px;
    color: #98a2b3;
    font-size: 12px;
}


/* =========================
   RESPONSIVE DESIGN
   ========================= */

@media (max-width: 900px) {

    .main-nav {
        gap: 14px;
    }

    .main-nav a:not(.nav-button) {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 55px 0;
    }

    .hero-content {
        padding: 0;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .site-header {
        padding: 14px 5%;
    }

    .brand h1 {
        font-size: 17px;
    }

    .brand p {
        display: none;
    }

    .hero {
        width: 90%;
        min-height: auto;
        padding: 50px 0 65px;
    }

    .hero h2 {
        font-size: 42px;
        letter-spacing: -1.5px;
    }

    .hero-content > p {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .hero-card {
        padding: 28px;
    }

    .features {
        padding: 70px 5%;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

}
/* =========================
   AUTHENTICATION PAGES
   ========================= */

.auth-page {
    min-height: calc(100vh - 82px - 105px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 70px 20px;
}

.auth-card {
    width: min(520px, 100%);

    padding: 42px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 20px;

    box-shadow: var(--shadow);
}

.auth-heading {
    text-align: center;
    margin-bottom: 32px;
}

.auth-heading .eyebrow {
    margin-bottom: 12px;
}

.auth-heading h2 {
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: -0.8px;
}

.auth-heading p {
    margin-top: 12px;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.6;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text);

    font-size: 14px;
    font-weight: 700;
}

.form-group .optional {
    color: var(--muted);
    font-weight: 400;
}

.form-group input {
    width: 100%;
    height: 48px;

    padding: 0 14px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 9px;

    color: var(--text);

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input::placeholder {
    color: #98a2b3;
}

.form-group input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(24, 59, 112, 0.10);
}

.form-group small {
    color: var(--muted);

    font-size: 12px;
    line-height: 1.5;
}

.auth-submit {
    width: 100%;

    border: none;

    cursor: pointer;

    font-family: inherit;
}

.auth-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    display: none;

    padding: 12px 14px;

    border-radius: 9px;

    font-size: 13px;
    line-height: 1.5;
}

.form-message.show {
    display: block;
}

.form-message.error {
    background: #fff1f1;
    border: 1px solid #f3caca;
    color: #a61b1b;
}

.form-message.success {
    background: #effaf2;
    border: 1px solid #c8e8ce;
    color: #176b2c;
}

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    margin-top: 26px;
    padding-top: 22px;

    border-top: 1px solid var(--border);

    color: var(--muted);

    font-size: 13px;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 700;
}

.auth-footer a:hover {
    text-decoration: underline;
}


@media (max-width: 600px) {

    .auth-page {
        padding: 45px 16px;
    }

    .auth-card {
        padding: 30px 22px;
    }

    .auth-heading h2 {
        font-size: 29px;
    }

}
/* =========================
   DASHBOARD
   ========================= */

.dashboard-page {
    width: min(1180px, 88%);
    margin: 0 auto;
    padding: 70px 0 100px;
}

.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    padding-bottom: 55px;
}

.dashboard-hero h2 {
    font-size: clamp(38px, 4vw, 54px);
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.dashboard-hero h2 span {
    color: var(--primary);
}

.dashboard-hero p {
    max-width: 650px;
    margin-top: 16px;

    color: var(--muted);
    font-size: 16px;
}

.account-status-card {
    min-width: 260px;

    display: flex;
    align-items: center;
    gap: 14px;

    padding: 18px 20px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 14px;

    box-shadow: 0 10px 30px rgba(20, 35, 60, 0.07);
}

.status-indicator {
    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: #2e9b4f;

    box-shadow: 0 0 0 5px rgba(46, 155, 79, 0.10);
}

.account-status-card div:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account-status-card strong {
    font-size: 14px;
}

.account-status-card span {
    color: var(--muted);
    font-size: 12px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.dashboard-card {
    padding: 30px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 16px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 16px 35px rgba(20, 35, 60, 0.09);
}

.dashboard-card-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 9px;

    background: var(--surface-soft);
    color: var(--primary);

    font-size: 12px;
    font-weight: 800;
}

.dashboard-card h3 {
    font-size: 20px;
    margin-bottom: 9px;
}

.dashboard-card p {
    min-height: 68px;

    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.dashboard-action {
    margin-top: 20px;

    padding: 10px 15px;

    background: transparent;

    border: 1px solid var(--border);
    border-radius: 8px;

    color: var(--primary);

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.dashboard-action:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}


@media (max-width: 900px) {

    .dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .account-status-card {
        width: 100%;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .dashboard-page {
        width: 90%;
        padding: 50px 0 70px;
    }

    .dashboard-hero h2 {
        font-size: 38px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card p {
        min-height: auto;
    }

}