* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top right, rgba(215, 181, 109, 0.14), transparent 32%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.06), transparent 28%),
        #050505;
    color: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.auth-shell {
    min-height: 100vh;
    min-height: 100svh;
    padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-page {
    width: 100%;
    max-width: 1040px;
    display: grid;
    grid-template-columns: 1fr 430px;
    gap: 22px;
}

.brand-block,
.login-card {
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(15,15,15,0.92);
    box-shadow: 0 24px 80px rgba(0,0,0,0.45);
}

.brand-block {
    min-height: 620px;
    border-radius: 30px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.brand-block:before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -120px;
    top: -90px;
    border: 1px solid rgba(215,181,109,0.22);
    transform: rotate(45deg);
}

.brand-top {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 1;
}

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 17px;
    background: #d7b56d;
    color: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    letter-spacing: -1px;
}

.brand-top h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.8px;
}

.brand-top p {
    margin: 4px 0 0;
    color: rgba(255,255,255,0.58);
    font-size: 14px;
}

.brand-message {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.brand-message span {
    color: #d7b56d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.brand-message h2 {
    margin: 16px 0 10px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 0.95;
    letter-spacing: -2px;
}

.brand-message p {
    margin: 0;
    max-width: 420px;
    color: rgba(255,255,255,0.66);
    line-height: 1.6;
}

.login-card {
    border-radius: 30px;
    padding: 30px;
}

.login-header {
    margin-bottom: 26px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #d7b56d;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.login-header h2 {
    margin: 0 0 8px;
    font-size: 34px;
    letter-spacing: -1px;
}

.login-header p {
    margin: 0;
    color: rgba(255,255,255,0.58);
    line-height: 1.45;
}

.form-group {
    margin-bottom: 17px;
}

.auth-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.82);
    font-weight: 700;
}

.auth-input {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 15px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 16px;
    outline: none;
}

.auth-input::placeholder {
    color: rgba(255,255,255,0.34);
}

.auth-input:focus {
    border-color: #d7b56d;
    box-shadow: 0 0 0 4px rgba(215,181,109,0.14);
    background: rgba(255,255,255,0.08);
}

.auth-error {
    margin-top: 7px;
    color: #ff8a8a;
    font-size: 13px;
}

.auth-row {
    margin: 4px 0 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.68);
    font-size: 14px;
}

.remember input {
    width: 17px;
    height: 17px;
    accent-color: #d7b56d;
}

.small-link {
    color: #d7b56d;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.auth-button {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #d7b56d, #a97a28);
    color: #050505;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 16px;
    color: rgba(255,255,255,0.40);
    font-size: 13px;
}

.auth-divider:before,
.auth-divider:after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.10);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.social-button {
    min-height: 46px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.auth-note {
    margin: 22px 0 0;
    color: rgba(255,255,255,0.48);
    font-size: 13px;
    line-height: 1.45;
}

.auth-note span {
    display: block;
    color: rgba(255,255,255,0.76);
    font-weight: 700;
}

@media (max-width: 820px) {
    .auth-shell {
        align-items: flex-start;
    }

    .auth-page {
        max-width: 460px;
        display: block;
    }

    .brand-block {
        min-height: auto;
        padding: 22px;
        border-radius: 24px 24px 0 0;
        border-bottom: 0;
    }

    .brand-message {
        margin-top: 34px;
    }

    .brand-message h2 {
        font-size: 34px;
        line-height: 1;
    }

    .brand-message p {
        font-size: 14px;
    }

    .login-card {
        border-radius: 0 0 24px 24px;
        padding: 24px;
    }

    .login-header h2 {
        font-size: 30px;
    }
}

@media (max-width: 420px) {
    .auth-shell {
        padding: 10px;
    }

    .brand-top h1 {
        font-size: 23px;
    }

    .brand-mark {
        width: 46px;
        height: 46px;
        border-radius: 15px;
    }

    .brand-message {
        margin-top: 26px;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .auth-row {
        align-items: flex-start;
    }
}

.dashboard-grid {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.dashboard-card {
    min-height: 58px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    display: flex;
    align-items: center;
}

.dashboard-card:hover {
    border-color: rgba(215,181,109,0.55);
    color: #d7b56d;
}

.dashboard-card.highlight {
    background: rgba(215,181,109,0.14);
    border-color: rgba(215,181,109,0.45);
    color: #d7b56d;
}

.profile-section-title {
    margin: 24px 0 14px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.10);
    color: #d7b56d;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mode-choice {
    display: block;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    cursor: pointer;
}

.mode-choice input {
    display: none;
}

.mode-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mode-content strong {
    color: #fff;
    font-size: 15px;
}

.mode-content span {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.mode-choice.active,
.mode-choice:has(input:checked) {
    border-color: rgba(215,181,109,0.6);
    background: rgba(215,181,109,0.12);
}

.mode-choice:has(input:checked) .mode-content strong {
    color: #d7b56d;
}
.task-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.task-item {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.task-item strong {
    display: block;
    color: #fff;
    font-size: 15px;
}

.task-item span {
    display: block;
    margin-top: 5px;
    color: rgba(255,255,255,0.45);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.task-item.done {
    opacity: 0.55;
}

.task-actions {
    display: flex;
    gap: 8px;
}

.mini-button {
    padding: 9px 12px;
    border-radius: 12px;
    background: rgba(215,181,109,0.16);
    color: #d7b56d;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}

.mini-button.muted {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.55);
}

.elapsed-ring {
    width: 220px;
    height: 220px;
    margin: 30px auto 10px; /* tighter bottom */
    border-radius: 50%;
    border: 2px solid rgba(215,181,109,0.5);
    background:
        radial-gradient(circle, rgba(215,181,109,0.15), transparent 65%),
        rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px rgba(215,181,109,0.2);
}

.elapsed-ring span {
    display: block;
    color: #d7b56d;
    font-size: 46px;
    font-weight: 900;
    letter-spacing: -1px;
    text-align: center;
}

.elapsed-ring small {
    display: block;
    margin-top: 6px;
    color: rgba(255,255,255,0.48);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 11px;
    font-weight: 900;
}

@media (max-width: 480px) {
    .task-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .task-actions {
        width: 100%;
    }

    .mini-button {
        flex: 1;
        text-align: center;
    }

    .elapsed-ring {
        width: 190px;
        height: 190px;
    }

    .elapsed-ring span {
        font-size: 40px;
    }
}

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

.session-actions form {
    margin: 0;
}

.danger-button {
    background: #b84a4a;
    color: #fff;
}