:root {
    --background-color: #181818;
    --surface-color: #1E1E1E;
    --primary-text-color: #E0E0E0;
    --secondary-text-color: #A0A0A0;
    --accent-color: #59a6ff;
    --border-color: #333333;

    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    --font-size-base: 16px;
    --line-height-base: 1.6;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    margin: 0;
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    background-color: var(--background-color);
    color: var(--primary-text-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    margin: 2rem 0 1rem 0;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.75em; }
h4 { font-size: 1.5em; }

p {
    margin: 0 0 1.5rem 0;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    text-decoration: underline;
    color: #8abfff
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

#error {
    color: red;
    margin-top: 10px;
    font-weight: bold;
}

.center-text {
    text-align: center;
}

.page-center {
  min-height: 100vh;
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center;     /* Center vertically */
  padding: 1rem;
}

.login-form {
  display: flex;
  flex-direction: column; /* Stacks items vertically */
  gap: 1rem;              /* Adds space between items */
  align-items: center;    /* This will center the smaller input boxes */
  
  width: 100%;
  max-width: 400px;
  padding: 2.5rem;
  background-color: var(--surface-color);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.login-form h1 {
  margin: 0 0 1rem 0;
  font-size: 1.75rem;
  text-align: center;
}

/* --- 4. Input, Button, and Error Styling --- */

/* This is the new .input class you requested */
.input {
  padding: 14px;
  font-size: 1rem;
  color: var(--primary-text-color);
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.25);
}

.input-btn {
  padding: 14px;
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background-color: var(--accent-color);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}
.input-btn:hover {
  background-color: #4091e8;
}