:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --accent-primary: #3b82f6;
  --accent-secondary: #2563eb;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-error: #ef4444;
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

header {
  margin-bottom: 2.5rem;
  text-align: center;
  animation: fadeInDown 0.8s ease forwards;
}

.logo {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(to right, #3b82f6, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

.card {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(20px);
}

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

.fade-in-delay-1 {
  animation: fadeIn 0.5s ease 0.2s forwards;
}

.fade-in-delay-2 {
  animation: fadeIn 0.5s ease 0.4s forwards;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 1rem;
}

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

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

.btn-primary:hover:not(:disabled) {
  background-color: var(--accent-secondary);
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.form-label {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.75rem 1rem;
  transition: all 0.3s;
  opacity: 0.7;
  color: var(--text-secondary);
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
  transform: translateY(-1.5rem) translateX(0) scale(0.85);
  padding: 0 0.5rem;
  color: var(--accent-primary);
  background-color: var(--bg-secondary);
  z-index: 1;
  opacity: 1;
}

.login-container {
  max-width: 400px;
  margin: 0 auto;
}

.note {
  font-size: 0.9rem;
  padding: 0.75rem;
  background-color: rgba(245, 158, 11, 0.1);
  border-left: 3px solid var(--accent-warning);
  border-radius: 4px;
  color: #fcd34d;
  margin-bottom: 1.5rem;
}

.icon {
  display: inline-block;
  width: 18px;
  height: 18px;
}

footer {
  margin-top: 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  opacity: 0;
  animation: fadeIn 0.5s ease 0.8s forwards;
  /* Make sure footer has column layout */
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer p {
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  flex-direction: row; /* Force horizontal layout */
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}


.social-link {
  color: var(--text-secondary);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.social-link:hover {
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.social-link-text {
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .card {
    padding: 1.25rem;
  }
  
  /* Remove or modify this part that's causing the stacking */
  .social-links {
    flex-direction: row; /* Keep horizontal even on mobile */
    gap: 1rem; /* You can reduce the gap for mobile */
    justify-content: center;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
