body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #121212; /* Dark background */
    color: #e0e0e0; /* Light text */
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

/* --- Main Content Container (Dark Theme) --- */
.container {
    background-color: #1e1e1e; /* Slightly lighter dark container */
    padding: 2rem 2.5rem;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

/* --- Headings (Dark Theme) --- */
h2 {
    color: #ffffff;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

h3 {
    color: #ffffff;
    text-align: left;
    margin-bottom: 1rem;
}

/* --- Form Elements (Dark Theme) --- */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 14px;
    background-color: #2c2c2c;
    border: 1px solid #444;
    color: #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    border-color: #bb86fc; /* Purple accent for focus */
    box-shadow: 0 0 0 2px rgba(187, 134, 252, 0.2);
    outline: none;
}

/* --- Buttons (Dark Theme) --- */
button {
    background-color: #bb86fc; /* Purple accent button */
    color: #121212; /* Dark text on button */
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 0.5rem;
}

button:hover {
    background-color: #a362ff;
}

/* --- Links (Dark Theme) --- */
a {
    color: #bb86fc; /* Purple accent link */
    text-decoration: none;
    margin-top: 1rem;
    font-weight: 500;
    /* FIX: Add margin to space out links */
    margin-left: 8px;
    margin-right: 8px;
}

a:hover {
    text-decoration: underline;
}

/* --- Message Boxes (Dark Theme) --- */
.message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
    border: 1px solid;
}

.error {
    color: #cf6679; /* Material Design error color */
    background-color: rgba(207, 102, 121, 0.1);
    border-color: #cf6679;
}

.success {
    color: #03dac6; /* Material Design success color */
    background-color: rgba(3, 218, 198, 0.1);
    border-color: #03dac6;
}

/* --- Dashboard Specifics (Dark Theme) --- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    text-align: left;
}

.dashboard-header h2 {
    margin: 0;
}

.notes-list {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 1.5rem;
}

.notes-list li {
    background-color: #2c2c2c;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

hr {
    border: none;
    border-top: 1px solid #333;
    margin: 1.5rem 0;
}
