:root {
    --bg: #f5f7fb;
    --surface: rgba(255, 255, 255, 0.92);
    --text: #172033;
    --muted: #667085;
    --line: #dbe2ef;
    --accent: #2458d3;
    --accent-dark: #173d9c;
    --danger-bg: #fff1f1;
    --danger-text: #a12828;
    --shadow: 0 18px 45px rgba(28, 40, 70, 0.12);
    --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(36, 88, 211, 0.14), transparent 34rem),
        var(--bg);
}

button, input { font: inherit; }

.eyebrow {
    margin-bottom: 0.55rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.login-card {
    width: min(100%, 430px);
    padding: clamp(1.5rem, 5vw, 2.6rem);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.login-card h1,
.hero h1 {
    margin: 0;
    letter-spacing: -0.04em;
}

.login-card p,
.hero p {
    color: var(--muted);
    line-height: 1.6;
}

.login-form {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.login-form label { font-weight: 700; }

.login-form input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
    background: #fff;
}

.login-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(36, 88, 211, 0.12);
}

.login-form button,
.logout-button {
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
}

.login-form button {
    margin-top: 0.25rem;
    padding: 0.95rem 1rem;
    color: #fff;
    background: var(--accent);
}

.login-form button:hover { background: var(--accent-dark); }

.alert {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    color: var(--danger-text);
    background: var(--danger-bg);
}

.hero {
    padding: 3rem 1.25rem 5rem;
    color: #fff;
    background: linear-gradient(135deg, #183a8f, #3168e8);
}

.hero .eyebrow { color: #c9d8ff; }
.hero p { margin-bottom: 0; color: #dce5ff; }

.hero-inner {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.logout-button {
    padding: 0.72rem 1rem;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.12);
}

.content {
    width: min(1120px, calc(100% - 2rem));
    margin: -2.7rem auto 0;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.day-card {
    overflow: hidden;
    border: 1px solid rgba(219, 226, 239, 0.9);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.day-header {
    padding: 1.35rem 1.35rem 1rem;
    border-bottom: 1px solid var(--line);
}

.day-header time {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: var(--accent);
    font-weight: 800;
}

.day-header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 1.2rem 1.35rem 1.35rem;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 4.7rem 1rem minmax(0, 1fr);
    gap: 0.75rem;
    min-height: 4rem;
}

.timeline-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1rem;
    bottom: -0.2rem;
    left: 5.15rem;
    width: 2px;
    background: var(--line);
}

.time {
    padding-top: 0.05rem;
    color: var(--accent-dark);
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
}

.dot {
    position: relative;
    z-index: 1;
    width: 0.75rem;
    height: 0.75rem;
    margin-top: 0.24rem;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 2px var(--accent);
}

.event {
    display: grid;
    gap: 0.25rem;
    padding-bottom: 1rem;
}

.event strong { line-height: 1.3; }
.event span { color: var(--muted); line-height: 1.45; }

footer {
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--muted);
}

@media (max-width: 760px) {
    .hero { padding-top: 2rem; }
    .hero-inner { flex-direction: column; }
    .days-grid { grid-template-columns: 1fr; }
    .logout-button { align-self: flex-start; }
}

@media (max-width: 430px) {
    .content { width: min(100% - 1rem, 1120px); }
    .day-header, .timeline { padding-left: 1rem; padding-right: 1rem; }
    .timeline-item { grid-template-columns: 4.1rem 0.8rem minmax(0, 1fr); gap: 0.55rem; }
    .timeline-item:not(:last-child)::after { left: 4.45rem; }
    .time { font-size: 0.79rem; }
    .dot { width: 0.65rem; height: 0.65rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
}
