/* =================== AUTH STYLES =================== */

.auth-container {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.auth-header h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text1);
}

.auth-header p {
  font-size: 14px;
  color: var(--text2);
  margin: 0;
}

/* Form Styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text1);
}

.form-group input,
.form-group select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg2);
  color: var(--text1);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 3px var(--accent-alpha);
}

.form-group input::placeholder {
  color: var(--text3);
}

/* Alert Styles */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

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

/* Button Styles */
.btn {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-full {
  width: 100%;
  margin-top: 8px;
}

.btn-secondary {
  background: var(--bg2);
  color: var(--text1);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg2);
  border-color: var(--accent);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12px;
}

/* Auth Switch */
.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text2);
  margin-top: 20px;
}

.auth-switch a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

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

/* Responsive */
@media (max-width: 480px) {
  .auth-card {
    padding: 24px;
  }

  .auth-header h1 {
    font-size: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Dark Theme */
[data-theme="dark"] {
  --auth-text: #f0f4ff;
  --auth-border: #1e2847;
}

[data-theme="dark"] .auth-card {
  background: #0B1426;
  border-color: #1e2847;
}

/* Light Theme */
[data-theme="light"] {
  --auth-text: #0B1426;
  --auth-border: #e5e7eb;
}

[data-theme="light"] .auth-card {
  background: #ffffff;
  border-color: #e5e7eb;
}
