:root {
    --ink: #15234b;
    --muted: #6e7898;
    --blue: #3562e8;
    --purple: #7657e8;
    --line: #e8ebf5
}

* {
    box-sizing: border-box
}

html {
    min-width: 280px
}

button,
input {
    font: inherit
}

body {
    margin: 0;
    background: linear-gradient(135deg, #f7f9ff, #f3f0ff);
    color: var(--ink);
    font-family: Arial, sans-serif
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px;
}

.auth-brand {
    position: absolute;
    top: 28px;
    left: 35px;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
}

.auth-brand span:first-child {
    display: inline-grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: #fff;
    margin-right: 8px
}

.auth-brand span:last-child {
    color: var(--blue)
}

.auth-card {
    width: min(430px, 100%);
    background: #fff;
    padding: 38px;
    border-radius: 20px;
    box-shadow: 0 20px 55px #2d43851c
}

.label {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--blue);
    font-weight: bold
}

.auth-card h1,
.dashboard h1 {
    font-size: 30px;
    margin: 12px 0
}

.intro {
    color: var(--muted);
    line-height: 1.6
}

.alert {
    padding: 12px;
    background: #fff0f0;
    color: #ba4545;
    border-radius: 8px;
    font-size: 13px;
    margin: 20px 0
}

label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin: 18px 0
}

input {
    display: block;
    width: 100%;
    padding: 13px;
    margin-top: 7px;
    border: 1px solid #dfe3f1;
    border-radius: 8px;
    font: inherit
}

small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 6px
}

button {
    border: 0;
    cursor: pointer
}

auth-card button,
.auth-card button {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    background: var(--blue);
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    margin-top: 10px
}

.switch {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin: 25px 0 0
}

.switch a {
    color: var(--blue);
    font-weight: bold
}

.dashboard-page {
    background: #f7f9ff
}

.dash-header {
    height: 78px;
    background: #fff;
    padding: 0 max(24px, calc((100% - 1100px)/2));
    display: flex;
    align-items: center;
    justify-content: space-between
}

.dash-header .auth-brand {
    position: static
}

.logout {
    color: var(--blue);
    font-weight: bold;
    font-size: 13px
}

.dashboard {
    width: min(100% - 40px, 900px);
    margin: 60px auto
}

.summary {
    display: flex;
    gap: 15px;
    margin: 30px 0
}

.summary div {
    background: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px #26376d0b
}

.summary strong {
    display: block;
    font-size: 25px;
    color: var(--blue)
}

.summary small {
    margin-top: 5px
}

.task-panel {
    background: #fff;
    padding: 28px;
    border-radius: 16px
}

.task-panel h2 {
    margin-top: 0
}

.task-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px
}

.task-form input {
    margin: 0
}

.task-form input[type=text] {
    flex: 1;
    min-width: 0
}

.task-form input[type=date] {
    max-width: 150px
}

.task-form button {
    background: var(--blue);
    color: #fff;
    padding: 0 18px;
    border-radius: 8px
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding: 16px 0
}

.task-item>div {
    flex: 1
}

.task-item strong {
    font-size: 14px
}

.task-item small {
    margin-top: 5px
}

.task-check {
    width: 24px;
    height: 24px;
    border: 1px solid #cbd2e6;
    border-radius: 50%;
    background: #fff;
    color: #fff
}

.is-done .task-check {
    background: #52b77a;
    border-color: #52b77a
}

.is-done strong {
    text-decoration: line-through;
    color: #9299ae
}

.delete-form button {
    background: none;
    color: #bd6c77;
    font-size: 20px
}

@media(max-width:600px) {
    .auth-card {
        padding: 26px
    }

    .auth-brand {
        left: 20px
    }

    .summary {
        gap: 8px
    }

    .summary div {
        padding: 15px;
        flex: 1
    }

    .summary strong {
        font-size: 20px
    }

    .task-form {
        display: block
    }

    .task-form input,
    .task-form input[type=date],
    .task-form button {
        max-width: none;
        width: 100%;
        margin: 7px 0;
        padding: 13px
    }

    .auth-shell {
        display: block;
        min-height: 100svh;
        padding: 92px 16px 24px
    }

    .auth-brand {
        top: 22px;
        left: 16px
    }

    .auth-card {
        margin: 0 auto;
        padding: 24px 20px
    }

    .dashboard {
        width: calc(100% - 28px);
        margin: 34px auto
    }

    .dash-header {
        height: 68px;
        padding: 0 14px
    }

    .dash-header .auth-brand {
        font-size: 18px
    }

    .dash-header .auth-brand span:first-child {
        width: 31px;
        height: 31px
    }

    .dashboard h1 {
        font-size: clamp(24px, 8vw, 30px);
        overflow-wrap: anywhere
    }

    .summary {
        display: grid;
        grid-template-columns: repeat(3, 1fr)
    }

    .summary div {
        min-width: 0;
        padding: 13px 8px;
        text-align: center
    }

    .summary strong {
        font-size: 20px
    }

    .summary small {
        font-size: 10px
    }

    .task-panel {
        padding: 20px 15px
    }

    .task-item {
        gap: 8px
    }

    .task-item>div {
        min-width: 0
    }

    .task-item strong {
        display: block;
        overflow-wrap: anywhere
    }


@media(max-width:360px) {
    .summary small {
        font-size: 9px
    }

    .task-panel {
        padding-inline: 12px
    }
}
    .dashboard {
        margin-top: 40px
    }
}