/* Auth pages styles */
.auth-container {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--color-card-bg);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

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

.auth-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.5rem 0;
}

.auth-subtitle {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(15, 186, 129, 0.1);
}

.form-input::placeholder {
  color: rgba(15, 23, 42, 0.4);
}

.auth-submit-button {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(120deg, var(--color-primary), #1dd8a4);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(15, 186, 129, 0.35);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
  margin-top: 0.5rem;
}

.auth-submit-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 186, 129, 0.4);
}

.auth-submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-outline);
  opacity: 0.5;
}

.auth-divider span {
  padding: 0 1rem;
}

.social-button {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.social-button:hover {
  background: rgba(15, 23, 42, 0.02);
  transform: translateY(-1px);
}

.social-icon {
  width: 20px;
  height: 20px;
}

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.auth-footer-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 150ms ease;
}

.auth-footer-link:hover {
  color: var(--color-primary-dark);
}

/* Error and Success States */
.auth-error,
.auth-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.auth-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #dc2626;
}

.auth-success {
  background: rgba(15, 186, 129, 0.1);
  border: 1px solid rgba(15, 186, 129, 0.2);
  color: var(--color-primary-dark);
}

.error-icon,
.success-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.error-message,
.success-message {
  padding: 0;
  background: none;
  border: none;
  margin-bottom: 0;
  color: inherit;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 2rem 1.5rem;
  }

  .auth-title {
    font-size: 1.5rem;
  }
}
