* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background: #f4f6f8;
    color: #222;
    padding: 20px;
}

header {
    margin-bottom: 20px;
}

header h1 {
    font-size: 1.5rem;
}

#progress-text {
    color: #555;
    margin-top: 4px;
}

#task-list {
    list-style: none;
    margin-bottom: 20px;
}

.task {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.task-title {
    font-weight: bold;
    flex: 1;
}

.task-deadline {
    color: #777;
    font-size: 0.9rem;
    margin-right: 16px;
}

#add-task-form {
    display: flex;
    gap: 8px;
}

#add-task-form input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#add-task-form button {
    padding: 8px 16px;
    background: #2d6cdf;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.login-box {
    max-width: 340px;
    margin: 80px auto;
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
}

.login-box h1 {
    margin-bottom: 20px;
    font-size: 1.4rem;
}

#login-form,
#register-form  {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#login-form input,
#login-form button {
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

#login-form button {
    background: #2d6cdf;
    color: white;
    border: none;
    cursor: pointer;
}

.switch-text {
    margin-top: 14px;
    font-size: 0.9rem;
}
header {
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

body {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px 20px;
}

.task input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2d6cdf;
    cursor: pointer;
}

.task button {
    background: none;
    border: none;
    color: #c0392b;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 6px;
}

.task button:hover {
    color: #922b21;
}

#add-task-form input[type="text"] {
    flex: 1;
}
.login-box h1 {
    color: #1a1a1a;
    font-weight: 600;
}

#login-form input,
#register-form input {
    font-size: 0.95rem;
    transition: border-color 0.15s ease;
}

#login-form input:focus,
#register-form input:focus {
    outline: none;
    border-color: #2d6cdf;
}

#login-form button,
#register-form button {
    font-weight: 600;
    margin-top: 4px;
    transition: background 0.15s ease;
}

#login-form button:hover,
#register-form button:hover {
    background: #1e50b5;
}

.switch-text a {
    color: #2d6cdf;
    text-decoration: none;
    font-weight: 600;
}

.switch-text a:hover {
    text-decoration: underline;
}