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

:root {
    --blue: #008ed8;
    --blue-dark: #006aa8;
    --black: #111827;
    --gray: #5b6577;
    --light: #f3f8fc;
    --border: #d9e6ef;
    --white: #ffffff;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--black);
    background: var(--white);
}

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

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px clamp(20px, 5vw, 70px);
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.94);
    position: sticky;
    top: 0;
    z-index: 10;
}
.brand img { height: 72px; width: auto; display: block; }
.site-header nav { display: flex; align-items: center; gap: 22px; font-weight: 700; }
.nav-button { border: 1px solid var(--blue); padding: 10px 16px; border-radius: 999px; }

main { min-height: calc(100vh - 170px); }
.hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 52px;
    align-items: center;
    padding: clamp(45px, 8vw, 95px) clamp(20px, 5vw, 80px);
    background: linear-gradient(135deg, #ffffff 0%, #f4fbff 100%);
}
.eyebrow {
    color: var(--blue);
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-size: .82rem;
}
.hero h1, .auth-card h1, .dashboard h1 {
    font-size: clamp(2.2rem, 5vw, 4.7rem);
    line-height: 1.02;
    margin: 12px 0 18px;
    letter-spacing: -0.05em;
}
.lead { color: var(--gray); font-size: 1.16rem; line-height: 1.7; max-width: 680px; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.primary-button, .secondary-button {
    border: 0;
    border-radius: 12px;
    padding: 13px 21px;
    font-weight: 800;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}
.primary-button { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: white; box-shadow: 0 10px 25px rgba(0, 142, 216, .22); }
.secondary-button { background: white; color: var(--black); border: 1px solid var(--border); }
.full { width: 100%; margin-top: 18px; }
.hero-card {
    border: 1px solid var(--border);
    border-radius: 28px;
    background: white;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(17, 24, 39, .08);
    text-align: center;
}
.hero-card img { max-width: 100%; height: auto; }

.notice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 24px clamp(20px, 5vw, 80px) 80px;
}
.notice-grid article, .auth-card, .dashboard-card {
    border: 1px solid var(--border);
    border-radius: 22px;
    background: white;
    padding: 28px;
    box-shadow: 0 12px 35px rgba(17, 24, 39, .06);
}
.notice-grid h2 { margin-top: 0; }
.notice-grid p, .muted, .dashboard-card p { color: var(--gray); line-height: 1.65; }

.auth-shell, .dashboard {
    padding: 56px 20px 90px;
    display: flex;
    justify-content: center;
}
.auth-card { width: min(100%, 620px); }
.auth-card h1 { font-size: 2.4rem; }
label { display: block; font-weight: 800; margin: 16px 0 7px; }
input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 14px;
    font-size: 1rem;
}
input:focus { outline: 3px solid rgba(0, 142, 216, .15); border-color: var(--blue); }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
span.field-validation-error, form span { color: #b91c1c; font-size: .9rem; }
.alert { border-radius: 12px; padding: 12px 14px; margin: 15px 0; font-weight: 700; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.auth-switch { text-align: center; margin-top: 18px; color: var(--gray); }

.site-footer { border-top: 1px solid var(--border); padding: 22px 20px; text-align: center; color: var(--gray); }

.modal-open { overflow: hidden; }
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 18, 32, .74);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 22px;
    z-index: 99;
}
.modal-card {
    width: min(100%, 720px);
    background: white;
    border-radius: 24px;
    padding: clamp(24px, 4vw, 38px);
    box-shadow: 0 24px 90px rgba(0, 0, 0, .28);
}
.modal-card h2 { margin-top: 0; font-size: 2rem; }
.modal-card p { color: var(--gray); line-height: 1.7; }
.modal-actions { display: flex; gap: 14px; justify-content: flex-end; margin-top: 26px; }

@media (max-width: 850px) {
    .hero, .notice-grid { grid-template-columns: 1fr; }
    .site-header { align-items: flex-start; gap: 16px; flex-direction: column; }
    .two-column { grid-template-columns: 1fr; }
}
