/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }/* Modern, visually interesting design */
:root {
  /* Color palette */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;

  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;

  --purple-400: #c084fc;
  --purple-500: #a855f7;

  --pink-400: #f472b6;

  /* Functional colors */
  --bg: #e2e8f0;
  --bg-gradient-start: #f1f5f9;
  --bg-gradient-end: #cbd5e1;
  --bg-card: #ffffff;
  --text: var(--slate-800);
  --text-secondary: var(--slate-600);
  --accent: var(--violet-500);
  --accent-hover: var(--violet-600);
  --accent-gradient-start: var(--violet-500);
  --accent-gradient-end: var(--purple-500);
  --border: #ddd;
  --success: #10b981;
  --error: #ef4444;
}

/* Base styles */
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
}

.content-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Card styling */
.card {
  background-color: var(--bg-card);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 5px 10px rgba(0, 0, 0, 0.02);
  padding: 40px;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--accent-gradient-start), var(--accent-gradient-end));
}

/* Form elements */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.form-control {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--slate-50);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s;
}

.form-control:focus {
  border-color: var(--accent);
  background-color: white;
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.form-group:focus-within .form-label {
  color: var(--accent);
}

/* Button styling */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  padding: 12px 24px;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 8px;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(to right, var(--accent-gradient-start), var(--accent-gradient-end));
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--slate-100);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--slate-200);
  transform: translateY(-2px);
}

.btn-block {
  display: block;
  width: 100%;
}


.site-name {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--accent-gradient-start), var(--accent-gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  display: inline-block;
}

/* Alert styles */
.alert {
  padding: 16px;
  margin-bottom: 20px;
  border-radius: 8px;
  position: relative;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border-left: 4px solid var(--success);
}

.alert-error {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border-left: 4px solid var(--error);
}

/* Divider */
.divider {
  height: 1px;
  background-color: var(--border);
  margin: 24px 0;
  position: relative;
}

.divider::before {
  content: "or";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 0 12px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Footer */
.site-footer {
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-align: center;
  margin-top: auto;
}

/* Checkbox */
.checkbox-wrap {
  display: flex;
  align-items: flex-start;
}

.checkbox-wrap input {
  margin-top: 3px;
  margin-right: 8px;
}

.checkbox-wrap span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Helper text */
.helper-text {
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-top: 4px;
}

.helper-text-left {
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-align: left;
  margin-top: 4px;
}

/* Auth options */
.auth-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}

@media (min-width: 480px) {
  .auth-options {
    grid-template-columns: 1fr 1fr;
  }
}

/* Link styles */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Decorative elements */
.bg-shape {
  position: absolute;
  z-index: -1;
  opacity: 0.5;
}

.bg-shape-1 {
  top: 10%;
  right: 5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(168, 85, 247, 0) 70%);
  border-radius: 50%;
}

.bg-shape-2 {
  bottom: 10%;
  left: 5%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, rgba(20, 184, 166, 0) 70%);
  border-radius: 50%;
}

/* Welcome page specific */
.welcome-card {
  max-width: 640px;
  text-align: center;
  padding: 60px 40px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 16px;
}

.welcome-heading {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--accent-gradient-start), var(--accent-gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.welcome-heading-medium {
  font-size: 2rem;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--accent-gradient-start), var(--accent-gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.welcome-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Back link */
.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}
.back-link-left {
  display: block;
  text-align: left;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.back-link span {
  margin-right: 5px;
}

/* Visual branding element */
.visual-element {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(to right, var(--teal-400), var(--violet-400));
  opacity: 0.1;
}

.border-accent {
    border-color: var(--accent);
}

.bg-accent {
    background-color: var(--accent);
}

.bg-accent-hover {
    background-color: var(--accent-hover) !important;
}