/* ==========================================================
   My Workout AI  -  CSS FOR THE ACCOUNT PAGES

   Loaded on /login, /register and /dashboard.

   The rest of the site CSS is in public/css/style.css, and the
   colours (--brand and friends) come from :root there.
   ========================================================== */


/* ----------------------------------------------------------
   1. The centred card used by login and register
   ---------------------------------------------------------- */
.auth-wrap {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    padding: 50px 0;
    overflow: hidden;
}

.auth-wrap::before {
    content: "";
    position: absolute;
    top: -240px;
    left: 50%;
    transform: translateX(-50%);
    width: 660px;
    height: 440px;
    background: var(--brand);
    opacity: 0.16;
    filter: blur(130px);
    border-radius: 50%;
    pointer-events: none;
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

/* the wider card used by the four step signup */
.auth-card.wide {
    max-width: 560px;
}

.auth-card h1 {
    font-size: 34px;
    margin-bottom: 8px;
}

.auth-card .sub {
    color: var(--muted);
    font-size: 14.5px;
    margin-bottom: 26px;
}

.auth-card .btn {
    width: 100%;
    text-align: center;
}

/* the line under the form offering the other page */
.auth-foot {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}

.auth-foot a {
    color: var(--brand);
    font-weight: 600;
}

/* the green box - said after a reset link is sent, and after
   the password is changed */
.auth-ok {
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.4);
    color: #86efac;
    border-radius: 11px;
    padding: 12px 15px;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* the small print under a form - the bit that explains what the
   form is actually going to do */
.auth-note {
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--muted);
    margin: 16px 0 0;
    padding-top: 15px;
    border-top: 1px solid var(--line);
}

/* the red box shown when something was filled in wrong */
.auth-error {
    background: rgba(255, 92, 92, 0.12);
    border: 1px solid rgba(255, 92, 92, 0.4);
    color: #ff8f8f;
    border-radius: 11px;
    padding: 12px 15px;
    font-size: 14px;
    margin-bottom: 20px;
}


/* ----------------------------------------------------------
   2. The four step signup
   ---------------------------------------------------------- */
.steps-bar {
    display: flex;
    gap: 7px;
    margin-bottom: 26px;
}

.steps-bar i {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: var(--line);
    transition: background 0.3s;
}

.steps-bar i.on {
    background: var(--brand);
}

.step-count {
    font-size: 11.5px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 10px;
}

/* one step of the form. jQuery shows one at a time. */
.form-step {
    display: none;
}

.form-step.show {
    display: block;
}

/* the two buttons at the bottom of a step */
.step-nav {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.step-nav .btn {
    flex: 1;
}

/* the big goal and level choices */
.pick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pick-card {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 16px;
    cursor: pointer;
    text-align: left;
    font-family: 'Inter', Arial, sans-serif;
    transition: all 0.2s;
}

.pick-card:hover {
    border-color: #3d3d52;
}

.pick-card.on {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.pick-card .pk-icon {
    font-size: 22px;
    display: block;
    margin-bottom: 8px;
}

.pick-card b {
    display: block;
    font-size: 15px;
    margin-bottom: 3px;
}

.pick-card small {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.45;
}

.pick-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.pick-grid.three .pick-card {
    text-align: center;
    padding: 16px 10px;
}

.pick-grid.three .pk-icon {
    margin-bottom: 6px;
}


/* ----------------------------------------------------------
   3. Dashboard
   ---------------------------------------------------------- */
.dash-hello {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 26px;
}

.dash-hello h1 {
    font-size: 38px;
}

/* the streak pill next to the greeting */
.streak-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    color: var(--muted);
}

.streak-pill b {
    color: var(--text);
}

.dash-hello .right {
    margin-left: auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* the big card holding today's workout */
.today-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 30px;
    overflow: hidden;
    margin-bottom: 22px;
}

.today-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(110% 90% at 10% 0%, var(--c, var(--brand)), transparent 58%);
    opacity: 0.14;
    pointer-events: none;
}

.today-card > * {
    position: relative;
}

.today-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.today-head .kicker {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--c, var(--brand));
}

.today-head h2 {
    font-size: 32px;
    width: 100%;
}

.today-head .chip {
    font-size: 12.5px;
    padding: 5px 13px;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    color: var(--muted);
}

/* the exercise list inside today's card */
.today-list {
    list-style: none;
    margin-bottom: 24px;
}

.today-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 15px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 11px;
    margin-bottom: 9px;
    font-size: 14.5px;
}

.today-list li:last-child {
    margin-bottom: 0;
}

.today-list .t-no {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-soft);
    color: var(--c, var(--brand));
    border-radius: 8px;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
}

.today-list .t-name {
    flex: 1;
}

.today-list .t-sets {
    color: var(--muted);
    font-size: 13.5px;
}

/* the seven dots showing this week */
.week-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
}

.week-dots div {
    flex: 1;
    text-align: center;
    padding: 12px 4px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.week-dots small {
    display: block;
    font-size: 10.5px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 7px;
}

.week-dots i {
    display: block;
    width: 11px;
    height: 11px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--line);
}

.week-dots div.done i {
    background: #4ade80;
}

.week-dots div.today {
    border-color: var(--brand);
}

.week-dots div.today i {
    background: var(--brand);
}

.week-dots div.rest i {
    background: transparent;
    border: 2px dashed var(--line);
}

/* the four small stat cards */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.dash-stats div {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
}

.dash-stats b {
    display: block;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: 34px;
    line-height: 1;
    color: var(--brand);
}

.dash-stats small {
    display: block;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 6px;
}

/* the shortcut row at the bottom */
.dash-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.dash-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 16px;
    font-size: 14px;
    font-weight: 600;
    transition: border-color 0.2s, transform 0.2s;
}

.dash-links a:hover {
    border-color: var(--brand);
    transform: translateY(-3px);
}

.dash-links span {
    font-size: 19px;
}

/* shown when today is a rest day */
.rest-today {
    text-align: center;
    padding: 26px 20px;
}

.rest-today .big {
    font-size: 48px;
    margin-bottom: 12px;
}

.rest-today b {
    display: block;
    font-size: 20px;
    margin-bottom: 6px;
}

.rest-today p {
    color: var(--muted);
    font-size: 14.5px;
    max-width: 420px;
    margin: 0 auto;
}


/* ----------------------------------------------------------
   4. Mobile
   ---------------------------------------------------------- */
@media (max-width: 900px) {

    .dash-links {
        grid-template-columns: 1fr 1fr;
    }

    .dash-hello h1 {
        font-size: 29px;
    }

    .dash-hello .right {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 600px) {

    .auth-card {
        padding: 26px 22px;
    }

    .auth-card h1 {
        font-size: 27px;
    }

    .dash-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-stats b {
        font-size: 28px;
    }

    .today-head h2 {
        font-size: 25px;
    }

    .week-dots {
        gap: 5px;
    }

    .week-dots div {
        padding: 10px 2px;
    }
}


/* ==========================================================
   THE REMINDER STRIP

   Only shown to somebody who set a reminder. Nothing is sent
   from the server - this is the site keeping its half of the
   promise on the page they open anyway.
   ========================================================== */
.reminder-strip {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 16px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}

.reminder-strip.on {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.rs-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg);
    font-size: 15px;
    line-height: 1;
}

.reminder-strip div {
    flex: 1;
    min-width: 0;
}

.reminder-strip b {
    display: block;
    font-size: 14px;
    color: var(--text);
}

.reminder-strip small {
    display: block;
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 2px;
}

.rs-edit {
    flex: none;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
}

.rs-edit:hover {
    text-decoration: underline;
}


@media (max-width: 520px) {

    .reminder-strip {
        flex-wrap: wrap;
    }

    .rs-edit {
        width: 100%;
        padding-left: 47px;
    }
}
