* {
  font-family: 'Mulish', sans-serif;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-container {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 420px;
  width: 90%;
}

.auth-container h1 {
  color: #333;
  margin: 0 0 8px 0;
  font-size: 26px;
  text-align: center;
}

.subtitle {
  color: #666;
  margin: 0 0 30px 0;
  font-size: 15px;
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
  margin-top: 14px;
}

input {
  padding: 12px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

input:focus {
  border-color: #7459fe;
}

.hint {
  color: #999;
  font-size: 12px;
  margin-top: 4px;
}

.status-message {
  margin: 16px 0 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
}

.status-message.info {
  display: block;
  background: #e3f2fd;
  color: #1976d2;
}

.status-message.success {
  display: block;
  background: #e8f5e9;
  color: #388e3c;
}

.status-message.error {
  display: block;
  background: #ffebee;
  color: #c62828;
}

button {
  padding: 14px 20px;
  border-radius: 30px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.btn-primary {
  background: linear-gradient(135deg, #7459fe 0%, #9480ff 100%);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(116, 89, 254, 0.4);
}

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

.auth-switch {
  text-align: center;
  margin-top: 24px;
  color: #666;
  font-size: 14px;
}

.auth-switch a {
  color: #7459fe;
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

button.loading .spinner {
  display: inline-block;
}
