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

/* Modern Login Page Styles - Inspired by Stripe/Linear */
* {
  box-sizing: border-box;
}

body {
  background: #fefefe;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

.modern-login-container {
  width: 100%;
  max-width: 400px;
  padding: 0 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.logo-container {
  margin-bottom: 56px;
  animation: fadeInDown 0.6s ease-out;
}

.logo-container img {
  height: 48px;
  width: auto;
  transition: all 0.4s ease;
}

.logo-container img:hover {
  transform: scale(1.02);
}

.login-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.login-subtitle {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 40px;
  line-height: 1.5;
  font-weight: 400;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.modern-form {
  text-align: left;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  background: #ffffff;
  color: #1f2937;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  position: relative;
}

.form-input:focus {
  outline: none;
  border-color: #ffd700;
  background: #ffffff;
  box-shadow: 
    0 0 0 1px #ffd700,
    0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-input:focus + .form-label {
  color: #ffd700;
}

.form-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.form-input:hover {
  border-color: #d1d5db;
  background: #ffffff;
}

.login-button {
  width: 100%;
  padding: 16px 24px;
  background: #ffd700;
  color: #1a1a1a;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 16px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.025em;
  position: relative;
  overflow: hidden;
}

.login-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.login-button:hover::before {
  left: 100%;
}

.login-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(255, 215, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.bottom-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  font-size: 14px;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.signup-link {
  color: #6b7280;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s ease;
}

.signup-link span {
  color: #ffd700;
  font-weight: 600;
  position: relative;
}

.signup-link span::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffd700;
  transition: width 0.3s ease;
}

.signup-link:hover span::after {
  width: 100%;
}

.forgot-link {
  color: #ffd700;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
}

.forgot-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffd700;
  transition: width 0.3s ease;
}

.forgot-link:hover::after {
  width: 100%;
}

.forgot-link:hover,
.signup-link:hover {
  transform: translateY(-1px);
}

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

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.error-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 0.4s ease-out;
}

.logged-in-container {
  text-align: center;
}

.logged-in-container h3 {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.logged-in-container p {
  color: #666666;
  margin-bottom: 30px;
}

.btn-action {
  width: 100%;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary-custom {
  background: #ffd700;
  color: #000000;
}

.btn-secondary-custom {
  background: #f8f9fa;
  color: #666666;
  border: 1px solid #e1e5e9;
}

.btn-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 480px) {
  .modern-login-container {
    padding: 20px 16px;
  }

  .bottom-links {
    flex-direction: column;
    gap: 12px;
  }
}