* {
    box-sizing: border-box;
}

:root {
    --navy: #102a43;
    --blue: #1769aa;
    --blue-light: #eaf4fb;
    --red: #e53935;
    --text: #102a43;
    --muted: #718096;
    --border: #e5eaf0;
    --background: #f5f8fb;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

.site-shell {
    min-height: 100vh;
}

.hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: #163b5c;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 22, 38, .72), rgba(5, 22, 38, .32) 45%, rgba(5, 22, 38, .76));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    min-height: 520px;
    padding: 24px 28px 70px;
    color: white;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.brand,
.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.8px;
}

.brand > span:last-child span,
.auth-brand > span:last-child span {
    font-weight: 400;
}

.brand-paddle {
    width: 29px;
    height: 36px;
    display: inline-flex;
}

.brand-paddle svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

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

.user-name {
    font-size: 14px;
    opacity: .9;
}

.header-button,
.today-button,
.action-button,
.time-button {
    border: 0;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease, background .15s ease;
}

.header-button {
    padding: 10px 17px;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 999px;
    color: white;
    background: rgba(255,255,255,.11);
    backdrop-filter: blur(8px);
    font-size: 14px;
    font-weight: 700;
}

.header-button:hover,
.action-button:hover,
.today-button:hover {
    transform: translateY(-1px);
}

.hero-title {
    margin-top: auto;
    max-width: 700px;
}

.eyebrow {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    opacity: .78;
}

.eyebrow.dark {
    color: var(--blue);
    opacity: 1;
}

.hero-title h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 76px);
    line-height: .98;
    letter-spacing: -3px;
}

.hero-title p:last-child {
    margin: 22px 0 0;
    font-size: 17px;
    opacity: .9;
}

.content {
    max-width: 1060px;
    margin: -46px auto 0;
    position: relative;
    z-index: 2;
    padding: 0 22px 70px;
}

.section {
    background: white;
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 18px 45px rgba(16,42,67,.09);
}

.section-heading h2,
.calendar-header h2 {
    margin: 0;
    font-size: 29px;
    letter-spacing: -1px;
}

.matches {
    margin-top: 22px;
    display: grid;
    gap: 12px;
}

.match-card {
    min-height: 90px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 15px 17px;
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 18px;
    align-items: center;
}

.match-date {
    display: flex;
    flex-direction: column;
    text-align: center;
    border-right: 1px solid var(--border);
    padding-right: 15px;
}

.match-day {
    font-size: 11px;
    font-weight: 800;
    color: var(--blue);
    text-transform: uppercase;
}

.match-date strong {
    margin-top: 2px;
    font-size: 17px;
}

.match-time {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1px;
}

.match-meta {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.match-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    flex-wrap: wrap;
}

.action-button {
    padding: 10px 17px;
    border-radius: 10px;
    background: var(--blue);
    color: white;
    font-size: 13px;
    font-weight: 800;
}

.action-button.secondary {
    background: #edf2f7;
    color: var(--navy);
}

.time-button {
    padding: 8px 4px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
}

.paddle {
    width: 30px;
    height: 37px;
    display: inline-flex;
    flex: 0 0 auto;
}

.paddle svg {
    width: 100%;
    height: 100%;
    fill: var(--navy);
}

.paddle.confirmed svg {
    fill: var(--red);
}

.empty-state {
    padding: 28px;
    border-radius: 14px;
    background: #f7fafc;
    color: var(--muted);
    text-align: center;
}

.calendar-card {
    margin-top: 24px;
    background: white;
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 18px 45px rgba(16,42,67,.07);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.today-button {
    background: var(--blue-light);
    color: var(--blue);
    padding: 9px 14px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13px;
}

.calendar-nav {
    margin: 24px 0 13px;
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    gap: 10px;
    align-items: center;
    text-align: center;
}

.calendar-nav button {
    border: 1px solid var(--border);
    background: white;
    border-radius: 10px;
    height: 40px;
    cursor: pointer;
    font-size: 25px;
    color: var(--navy);
}

.calendar-nav strong {
    font-size: 14px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    border: 1px solid var(--border);
    background: white;
    min-height: 76px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1px;
    transition: border .15s ease, transform .15s ease, background .15s ease;
}

.calendar-day:hover {
    border-color: #b8d4e8;
    background: #f5fbff;
    transform: translateY(-1px);
}

.calendar-day span {
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
}

.calendar-day strong {
    font-size: 20px;
}

.calendar-day small {
    color: var(--muted);
    font-size: 10px;
}

.calendar-hint {
    margin: 15px 0 0;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}

.auth-page {
    min-height: 100vh;
    padding: 30px 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        radial-gradient(circle at top left, #e7f3fc, transparent 35%),
        var(--background);
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 36px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(16,42,67,.09);
}

.auth-brand {
    color: var(--navy);
    margin-bottom: 26px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    border-radius: 12px;
    background: #f1f5f9;
    margin-bottom: 28px;
}

.auth-tabs a {
    text-align: center;
    padding: 10px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 800;
    color: var(--muted);
}

.auth-tabs a.active {
    background: white;
    color: var(--navy);
    box-shadow: 0 2px 7px rgba(16,42,67,.08);
}

.auth-card h1 {
    margin: 0;
    font-size: 31px;
    letter-spacing: -1px;
}

.auth-subtitle {
    margin: 7px 0 24px;
    color: var(--muted);
    font-size: 14px;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-form label {
    display: grid;
    gap: 7px;
    font-size: 12px;
    font-weight: 800;
}

.auth-form input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d9e1e9;
    border-radius: 11px;
    outline: none;
    color: var(--text);
    background: white;
}

.auth-form input:focus {
    border-color: #8dbbdd;
    box-shadow: 0 0 0 3px #eaf4fb;
}

.submit-button {
    border: 0;
    padding: 13px;
    border-radius: 11px;
    background: var(--blue);
    color: white;
    cursor: pointer;
    font-weight: 800;
}

.error-message {
    padding: 11px 13px;
    margin-bottom: 16px;
    border-radius: 10px;
    background: #fff0f0;
    color: #b42318;
    font-size: 13px;
}

.back-link {
    display: block;
    margin-top: 22px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 760px) {
    .hero,
    .hero-content {
        min-height: 450px;
    }

    .hero-content {
        padding: 20px 18px 55px;
    }

    .hero-title h1 {
        font-size: 48px;
        letter-spacing: -2px;
    }

    .content {
        margin-top: -30px;
        padding: 0 12px 45px;
    }

    .section,
    .calendar-card {
        padding: 21px 16px;
        border-radius: 18px;
    }

    .match-card {
        grid-template-columns: 55px 1fr;
        gap: 13px;
    }

    .match-date {
        padding-right: 11px;
    }

    .match-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-top: 5px;
    }

    .calendar-days {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 5px;
    }

    .calendar-day {
        min-height: 66px;
        border-radius: 9px;
    }

    .calendar-day strong {
        font-size: 18px;
    }

    .user-name {
        display: none;
    }

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