:root {
    --bg: #050807;
    --surface: #11181a;
    --surface-2: #182124;
    --border: #293437;

    --text: #f4f7f5;
    --muted: #9aa3a0;

    --accent: #63db62;
    --accent-strong: #4fca50;
    --accent-soft: rgba(99, 219, 98, 0.16);

    --danger: #ff6b6b;
}

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

body {
    min-height: 100dvh;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, sans-serif;
}

.auth-page {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;

}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
}

.auth-header {
    margin-bottom: 28px;
}

.auth-header p.brand {
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 0;
}

.auth-header h1 {
    margin-top: 16px;
    font-size: 28px;
    line-height: 1.1;
}

.auth-header p {
    margin-top: 8px;
    color: var(--muted);
}

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

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #080d0f;
}

.input-icon {
    color: var(--muted);
    font-size: 16px;
}

.input-wrap input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
}

.input-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.primary-button {
    min-height: 52px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #061007;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.error-msg{
    color: var(--danger);
    font-size: 14px;
}

.field .error-msg {
    margin-top: 8px;
}

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

.auth-switch a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.dashboard-page {
    width: 100%;
    max-width: 560px;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 24px 16px 104px;
}

.dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.eyebrow,
.section-kicker {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
}

.dashboard-header h1 {
    margin-top: 8px;
    font-size: 26px;
    line-height: 1.1;
}

.dashboard-header p:last-child,
.quick-start p,
.stat-card p,
.stat-card span,
.workout-row p {
    color: var(--muted);
}

.icon-button {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}

.icon-button span {
    display: block;
    width: 10px;
    height: 10px;
    margin: 0 auto;
    border-radius: 999px;
    background: var(--accent);
}

.quick-start,
.dashboard-card,
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.quick-start {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border-radius: 22px;
    margin-bottom: 14px;
}

.quick-start h2 {
    margin-top: 6px;
    font-size: 22px;
}

.quick-start p:last-child {
    margin-top: 4px;
    font-size: 14px;
}

.start-button {
    min-width: 92px;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #061007;
    font: inherit;
    font-weight: 800;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.stat-card {
    min-height: 112px;
    padding: 14px;
    border-radius: 18px;
}

.stat-card p,
.stat-card span {
    font-size: 13px;
}

.stat-card strong {
    display: block;
    margin-top: 12px;
    font-size: 26px;
    line-height: 1;
}

.stat-card span {
    display: block;
    margin-top: 8px;
}

.dashboard-card {
    padding: 16px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 18px;
}

.section-header a {
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.week-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.day-pill {
    display: grid;
    justify-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.day-pill strong {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-size: 14px;
}

.day-pill.is-complete strong {
    border-color: var(--accent);
    background: var(--accent);
    color: #061007;
}

.day-pill.is-active strong {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.workout-list {
    display: grid;
    gap: 10px;
}

.workout-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #080d0f;
}

.workout-row h3 {
    font-size: 16px;
}

.workout-row p {
    margin-top: 4px;
    font-size: 14px;
}

.workout-row > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 22px;
    font-weight: 800;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 14px;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr 64px 1fr 1fr;
    align-items: center;
    gap: 4px;
    width: min(100% - 24px, 520px);
    min-height: 74px;
    padding: 8px;
    transform: translateX(-50%);
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(17, 24, 26, 0.96);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.nav-item {
    display: grid;
    justify-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.nav-item.is-active {
    color: var(--accent);
}

.nav-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    font-size: 12px;
    font-weight: 900;
}

.nav-create {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #061007;
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(99, 219, 98, 0.28);
}
