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

body {
  font-family: "Plus Jakarta Sans", -apple-system, sans-serif;
  background: #f5f5f5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.wrapper {
  width: 100%;
  max-width: 380px;
}

.login-container {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 40px 32px;
  position: relative;
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-icon {
  width: 56px;
  height: 56px;
  background: #16a34a;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.login-icon i {
  font-size: 1.5rem;
  color: #fff;
}

.title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 4px;
}

.subtitle {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 400;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1rem;
  z-index: 1;
}

.form-input {
  width: 100%;
  padding: 12px 14px 12px 44px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9375rem;
  background: #fff;
  color: #111;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #16a34a;
}

.form-input::placeholder {
  color: #9ca3af;
}

.login-button {
  width: 100%;
  padding: 12px;
  background: #16a34a;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
  margin-top: 8px;
}

.login-button:hover {
  background: #15803d;
}

.login-button.loading {
  pointer-events: none;
}

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

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

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

.demo-info {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 20px;
}

.demo-info h4 {
  color: #374151;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.demo-info p {
  color: #6b7280;
  font-size: 0.8125rem;
  margin: 0;
}

.forgot-password {
  text-align: center;
  margin-top: 16px;
}

.forgot-password a {
  color: #16a34a;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
}

.forgot-password a:hover {
  text-decoration: underline;
}

.demo-warning {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.demo-warning p {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .login-container {
    padding: 32px 24px;
  }

  .title {
    font-size: 1.25rem;
  }

  .login-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }

  .login-icon i {
    font-size: 1.25rem;
  }
}
