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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 0 16px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.auth-body {
  padding: 32px;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 8px;
}

.auth-subtitle {
  color: #666;
  text-align: center;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.auth-error {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  display: none;
}

.auth-error.visible {
  display: block;
}

.auth-error-title {
  color: #991b1b;
  font-size: 0.875rem;
  font-weight: bold;
  margin-bottom: 4px;
}

.auth-error-message {
  color: #b91c1c;
  font-size: 0.875rem;
}

.auth-success {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  display: none;
}

.auth-success.visible {
  display: block;
}

.auth-success p {
  color: #166534;
  font-size: 0.875rem;
}

.auth-form {
  margin-bottom: 24px;
}

.auth-form .field {
  margin-bottom: 16px;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.auth-form input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.forgot-password-row {
  text-align: right;
  margin-bottom: 16px;
}

.forgot-password-row button {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0;
}

.forgot-password-row button:hover {
  color: #1d4ed8;
}

.auth-submit {
  width: 100%;
  padding: 10px;
  background: #1d1d1d;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.auth-submit:hover {
  background: #333;
}

.auth-submit:disabled {
  background: #a1a1aa;
  cursor: not-allowed;
}

.auth-divider {
  position: relative;
  margin-bottom: 24px;
  text-align: center;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid #d4d4d8;
}

.auth-divider span {
  position: relative;
  padding: 0 12px;
  background: #fff;
  color: #71717a;
  font-size: 0.875rem;
}

.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  background: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-bottom: 24px;
}

.google-btn:hover {
  background: #f4f4f5;
}

.google-btn svg {
  width: 20px;
  height: 20px;
}

.auth-switch {
  text-align: center;
  font-size: 0.875rem;
}

.auth-switch a {
  color: #2563eb;
  text-decoration: none;
}

.auth-switch a:hover {
  color: #1d4ed8;
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.75rem;
  color: #71717a;
}

.auth-footer a {
  color: #71717a;
  text-decoration: none;
}

.auth-footer a:hover {
  color: #333;
}
