/* ── Reset & Base ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ── Container ── */
.container {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
}

/* ── Headings ── */
h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 1.5rem;
}

/* ── Messages ── */
.error {
    background: #fee;
    color: #c0392b;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.success {
    background: #efd;
    color: #27ae60;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

/* ── Forms ── */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    font-weight: 600;
    color: #555;
}

input[type="text"],
input[type="password"] {
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #667eea;
    outline: none;
}

/* ── Buttons ── */
button {
    padding: 0.8rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #5a6fd6;
}

/* ── Links ── */
.links {
    text-align: center;
    margin-top: 1rem;
}

.links a {
    color: #667eea;
    text-decoration: none;
}

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

/* ── Nav (hello page) ── */
.nav {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nav a {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
}

.nav a:hover {
    background: #5a6fd6;
}

.nav a.logout {
    background: #e74c3c;
}

.nav a.logout:hover {
    background: #c0392b;
}
