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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #fff 100%, #c2e9fb 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 32px;
}

h1 {
  text-align: center;
  color: #333;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: 600;
  font-size: 14px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  font-size: 16px;
  background: #f8f9fa;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

input:focus {
  outline: none;
  background: #fff;
}

.field-row {
  position: relative;
}

.toggle-pw {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  cursor: pointer;
  font-size: 12px;
  color: #000;
  padding: 4px 6px;
}

.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #000 0%, #000 100%);
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.btn:disabled {
  background: #cfcfcf;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.message {
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  display: none;
}

.message.error {
  background: #fde8ea;
  color: #9d1c2b;
  border: 1px solid #f5c6cb;
}

.message.success {
  background: #e7f7ed;
  color: #166534;
  border: 1px solid #b7e4c7;
}

.loading {
  display: none;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: #666;
}

.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #eee;
  border-top: 3px solid #000;
  margin: 0 auto 8px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.footer {
  margin-top: 18px;
  text-align: center;
  color: #999;
  font-size: 12px;
}
