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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  background: #f5f5f7;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

.login-container {
  width: 100%;
  max-width: 400px;
}

.login-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.3s ease;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo {
  max-width: 72px;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.login-header h1 {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1d1d1f;
  margin-bottom: 0.2rem;
}

.login-header p {
  font-size: 0.95rem;
  color: #86868b;
  font-weight: 400;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1d1d1f;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.form-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  background: #f5f5f7;
  border: 1.5px solid transparent;
  border-radius: 12px;
  transition: all 0.2s ease;
  color: #1d1d1f;
}

.form-group input:focus {
  outline: none;
  background: #ffffff;
  border-color: #007aff;
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15);
}

.form-group input::placeholder {
  color: #aeaeb2;
  font-weight: 400;
}

.error {
  color: #ff3b30;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 1rem;
  background: #fff5f5;
  padding: 0.5rem;
  border-radius: 8px;
  font-weight: 500;
}

.login-btn {
  width: 100%;
  padding: 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: #007aff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
  margin-top: 0.5rem;
}

.login-btn:hover {
  background: #0066d9;
  transform: scale(1.01);
}

.login-btn:active {
  transform: scale(0.98);
}

.login-footer {
  margin-top: 1.8rem;
  text-align: center;
  font-size: 0.8rem;
  color: #aeaeb2;
  letter-spacing: -0.01em;
  border-top: 1px solid #f0f0f2;
  padding-top: 1.5rem;
}