@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #FF5A5F; /* HomeBase Red */
  --primary-hover: #E04E53;
  --bg-dark: #121212;
  --bg-card: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.1);
  --text-primary: #FFFFFF;
  --text-secondary: #AAAAAA;
  --success: #34C759;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(255, 90, 95, 0.15), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(52, 199, 89, 0.1), transparent 25%);
  background-attachment: fixed;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  color: white;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 1rem;
  width: 100%;
  transition: all 0.3s ease;
  outline: none;
}

.glass-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 90, 95, 0.1);
}

.glass-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Role Selector (Pills) */
.role-selector {
  display: flex;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--border-glass);
}

.role-selector input[type="radio"] {
  display: none;
}

.role-pill {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.role-selector input[type="radio"]:checked + .role-pill {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 90, 95, 0.4);
}

.btn-primary {
  background: linear-gradient(135deg, #FF5A5F 0%, #FF3D43 100%);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 90, 95, 0.4);
}

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

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

.animate-fade-in {
  animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 30px;
}

.navbar h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: -webkit-linear-gradient(#fff, #aaa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Alert styling */
#alert-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alert {
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(255, 90, 95, 0.9);
  color: white;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.alert.show {
  transform: translateX(0);
}

.alert.success {
  background: rgba(52, 199, 89, 0.9);
}
