/* Modern CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Variables (from futuristic dark theme) */
  --body-bg:        #141414; /* Main page background */
  --container-bg:   #1e1e1e; /* Container background */
  --text-color:     #f0f0f0; /* Primary text color */
  --accent-color:   #a463f2; /* Accent (buttons/links) */
  --accent-hover:   #8a3eed; /* Accent hover state */
  --border-color:   #2a2a2a; /* Borders */
  --danger-color:   #e74c3c; /* Error/red for messages */
  --danger-hover:   #c0392b; /* Error hover state */
  --white:          #ffffff;
  --black:          #000000;
  --font-family:    "Helvetica Neue", Arial, sans-serif;
}

body {
  font-family: var(--font-family);
  background-color: var(--body-bg);
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
}

.login-container {
  background-color: var(--container-bg);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  transition: transform 0.3s ease;
}

.login-container:hover {
  transform: translateY(-5px);
}

h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 300;
}

p {
  /* For error or informational messages, you can choose a contrasting style.
     Here we use a toned-down version of the danger colors. */
  background-color: rgba(231, 76, 60, 0.2);
  color: var(--danger-color);
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

input[type="text"],
input[type="password"] {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 1.25rem;
  font-size: 1rem;
  background-color: #2b2b2b;
  color: var(--white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(164, 99, 242, 0.2);
}

input[type="submit"] {
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 0.5rem;
}

input[type="submit"]:hover {
  background-color: var(--accent-hover);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .login-container {
    padding: 1.5rem;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  input[type="text"],
  input[type="password"],
  input[type="submit"] {
    padding: 0.625rem;
  }
}
