* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: radial-gradient(circle at 50% 0%, #151525 0%, #0a0a0f 65%);
  color: #e8e8f0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.card {
  width: 100%;
  max-width: 390px;
  background: #111118;
  border: 1px solid #222236;
  border-radius: 16px;
  padding: 2.4rem 2.2rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.icon {
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 0.85rem;
}

h1 {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.subtitle {
  text-align: center;
  color: #8a8aa3;
  font-size: 0.9rem;
  line-height: 1.45;
  margin-bottom: 1.75rem;
}

label {
  display: block;
  font-size: 0.82rem;
  color: #9b9bb2;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  background: #0a0a0f;
  border: 1px solid #28283e;
  color: #ffffff;
  padding: 0.78rem 0.95rem;
  border-radius: 9px;
  font-size: 0.96rem;
  margin-bottom: 1.05rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
  color: #52526b;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
}

button {
  width: 100%;
  background: #f59e0b;
  color: #0a0a0f;
  border: none;
  padding: 0.85rem;
  border-radius: 9px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.25rem;
  transition: background 0.18s ease, transform 0.1s ease;
}

button:hover {
  background: #fbbf24;
}

button:disabled {
  background: #3b3b4f;
  color: #8e8ea6;
  cursor: wait;
}

.error {
  background: #2a1014;
  border: 1px solid #f87171;
  color: #fca5a5;
  padding: 0.75rem 0.95rem;
  border-radius: 9px;
  font-size: 0.88rem;
  line-height: 1.4;
  margin-bottom: 1.15rem;
}

.hidden {
  display: none;
}

.footer {
  text-align: center;
  margin-top: 1.65rem;
  font-size: 0.78rem;
  color: #56566e;
}
