/* ── Shared auth page layout ──────────────────────────────────────────────── */

.auth-page-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px;
  min-height: 100%;
}

.auth-container {
  width: 100%;
  max-width: 440px;
}

/* Card */
.auth-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.auth-card-header {
  padding: 28px 32px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #f9fafb;
  margin: 0;
  line-height: 1.4;
}

.auth-card-subtitle {
  margin-top: 6px;
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.5;
}

.auth-card-body {
  padding: 28px 32px 32px;
}

/* Form controls */
.auth-form-group {
  margin-bottom: 18px;
}

.auth-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #d1d5db;
}

.auth-input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #f9fafb;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.auth-input::placeholder {
  color: #6b7280;
}

.auth-input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18);
}

/* Primary button */
.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 20px;
  margin-top: 4px;
  background: #4f46e5;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
}

.auth-btn:hover {
  background: #4338ca;
  transform: translateY(-1px);
}

/* Outline button */
.auth-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 20px;
  background: transparent;
  color: #e5e7eb;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
  box-sizing: border-box;
}

.auth-btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 22px 0;
  color: #6b7280;
  font-size: 0.875rem;
  gap: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Footer / links */
.auth-footer {
  margin-top: 22px;
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
}

.auth-link {
  color: #818cf8;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-link:hover {
  color: #4f46e5;
  text-decoration: underline;
}

/* Flash alerts */
.auth-alert {
  padding: 10px 14px;
  margin-bottom: 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.4;
}

.auth-alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

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

.auth-alert-info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}
