/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #111111;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
}

/* Header */
h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -1px;
  margin-bottom: 10px;
}

/* Main container */
div {
  background-color: #1a1a1a;
  border: 1px solid #2a2a2a;
  padding: 35px;
  min-width: 450px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

h2 {
  font-size: 1.2rem;
  font-weight: 500;
  color: #999999;
  letter-spacing: 0.5px;
  margin-bottom: 30px;
  text-align: left;
}

.error-message {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  color: #fca5a5;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  text-align: left;
}

/* Form styling */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

input[type="text"] {
  background-color: #0a0a0a;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  padding: 16px 18px;
  outline: none;
  transition: all 0.2s ease;
}

input[type="text"]:focus {
  border-color: #667eea;
  background-color: #141414;
}

input[type="text"]::placeholder {
  color: #555555;
}

input[type="submit"] {
  background-color: #667eea;
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
}

input[type="submit"]:hover {
  background-color: #5568d3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

input[type="submit"]:active {
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  div {
    min-width: auto;
    width: 90%;
    padding: 40px 30px;
  }

  h2 {
    font-size: 1rem;
  }

  input[type="text"],
  input[type="submit"] {
    font-size: 0.95rem;
    padding: 14px 16px;
  }
}
