
/* BASE STYLES */
body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f4f7;
    margin: 0;
    padding: 0;
    color: #222;
}

a {
    text-decoration: none;
    color: #1a3a6e;
}

a:hover {
    text-decoration: underline;
}

h1, h2 {
    margin-top: 0;
    color: #1a3a6e;
    text-align: center;
}

/* LAYOUT / CONTAINERS */
#layout,
.container {
    width: 450px;
    margin: 60px auto;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* FORMS (GLOBAL) */
form {
    margin-top: 15px;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea {
    width: 95%;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #1a3a6e;
    box-shadow: 0 0 0 2px rgba(26, 58, 110, 0.15);
}

/* BUTTONS */
button,
input[type="submit"] {
    background: #1a3a6e;
    color: white;
    padding: 9px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

button:hover,
input[type="submit"]:hover {
    background: #264d93;
}

.delete-btn {
    background: #b10f0f;
    margin-left: 10px;
}

.delete-btn:hover {
    background: #d81212;
}

.logout-btn {
    background: #555;
}

.logout-btn:hover {
    background: #333;
}

/* MESSAGES */
.message {
    background: #ffd2d2;
    padding: 10px;
    border-left: 4px solid #e40000;
    margin-top: 15px;
    border-radius: 4px;
}

/*HEADER*/
header h1 {
    margin: 0;
    padding: 20px;
    background: #1a3a6e;
    color: white;
    text-align: center;
}

/*TODO APP*/
.todo-wrapper {
    width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
}

.task {
    padding: 12px 0;
    border-bottom: 1px solid #e6e6e6;
}

.task:last-child {
    border-bottom: none;
}

.task span {
    font-size: 16px;
    margin-left: 10px;
}

.task small {
    display: block;
    margin-left: 28px;
    color: #555;
    font-size: 12px;
}

.done {
    text-decoration: line-through;
    color: #888;
}

.add-inline {
    display: inline-block;
    vertical-align: middle;
}

/* AUTH / LOGIN / REGISTER */

/* body auth */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* inputs auth */
.auth-wrapper input[type="text"],
.auth-wrapper input[type="password"],
.auth-wrapper input[type="email"] {
    width: 100%;
    margin-top: 10px;
}

/* button auth */
.auth-wrapper input[type="submit"],
.auth-wrapper button {
    width: 100%;
    padding: 11px;
    font-size: 15px;
    margin-top: 18px;
}

/* links under form */
.auth-links {
    margin-top: 15px;
    text-align: center;
}

.auth-links a {
    font-size: 14px;
}
