/* TeamPulse Login Page Styles - Matching Landing Page Design */


/* Body and Background */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Animated Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 25% 25%, #3b82f6 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, #0ea5e9 0%, transparent 50%);
  opacity: 0.08;
  z-index: -1;
  animation: drift 15s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translateX(0) translateY(0); }
  25% { transform: translateX(20px) translateY(-10px); }
  50% { transform: translateX(-10px) translateY(20px); }
  75% { transform: translateX(10px) translateY(10px); }
}

/* Floating Shapes */
.login-bg-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.login-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #0ea5e9);
  opacity: 0.06;
  animation: float-shapes 20s ease-in-out infinite;
}

.login-shape:nth-child(1) {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.login-shape:nth-child(2) {
  width: 150px;
  height: 150px;
  top: 70%;
  right: 15%;
  animation-delay: 7s;
}

.login-shape:nth-child(3) {
  width: 100px;
  height: 100px;
  top: 40%;
  left: 80%;
  animation-delay: 14s;
}

@keyframes float-shapes {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-30px) rotate(120deg); }
  66% { transform: translateY(20px) rotate(240deg); }
}

/* Login Container */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

/* Login Card */
.login-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 3rem;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.25);
  border: 2px solid rgba(59, 130, 246, 0.2);
  position: relative;
  backdrop-filter: blur(20px);
  animation: slideInUp 0.8s ease-out;
}

.login-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-primary);
  border-radius: 24px;
  z-index: -1;
  opacity: 0.15;
}

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

/* Login Header */
.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header img {
  width: 180px;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.login-header img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 36px rgba(59, 130, 246, 0.4);
}

.login-header h2 {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Form Controls */
.form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  background: white;
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

.form-control::placeholder {
  color: var(--text-muted);
}

/* Terms Section */
.terms-section {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.03) 0%, rgba(6, 182, 212, 0.03) 100%);
  border: 2px solid rgba(139, 92, 246, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  transition: all 0.3s ease;
}

.terms-section:hover {
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

.terms-section h6 {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terms-intro {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Terms Checkboxes */
.terms-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.terms-check:hover {
  background: rgba(139, 92, 246, 0.03);
}

/* Custom Checkbox */
.form-check-input {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  margin-top: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.form-check-input:checked {
  background: var(--gradient);
  border-color: var(--primary);
}

.form-check-input:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  font-size: 12px;
}

.form-check-input:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
}

/* Checkbox Labels */
.form-check-label {
  color: var(--text-secondary);
  line-height: 1.5;
  cursor: pointer;
  font-size: 0.875rem;
  flex: 1;
}

.form-check-label a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.form-check-label a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Data Purposes List */
.data-purposes-list {
  margin: 0.5rem 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.data-purposes-list li {
  margin-bottom: 0.25rem;
  position: relative;
  padding-left: 0.5rem;
}

.data-purposes-list li::before {
  content: '•';
  color: var(--primary);
  position: absolute;
  left: 0;
}

/* Login Notice */
.login-notice {
  border: 2px solid rgba(251, 191, 36, 0.3);
  border-radius: 12px;
  padding: 1rem;
  color: #f59e0b;
  font-size: 0.875rem;
  text-align: center;
  margin: 1.5rem 0;
  background: rgba(251, 191, 36, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Login Button */
.btn-lg {
  width: 100%;
  padding: 1.125rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* More specific selector for login page - using hardcoded blue */
.login-card .btn-primary,
.login-container .btn-primary,
button.btn-primary.btn-lg {
  background: #3b82f6 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35) !important;
}

.login-card .btn-primary:hover:not(:disabled),
.login-container .btn-primary:hover:not(:disabled),
button.btn-primary.btn-lg:hover:not(:disabled) {
  background: #2563eb !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(59, 130, 246, 0.45) !important;
}

.login-card .btn-primary:active:not(:disabled),
.login-container .btn-primary:active:not(:disabled),
button.btn-primary.btn-lg:active:not(:disabled) {
  background: #2563eb !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3) !important;
}

.btn-primary:disabled {
  background: var(--text-light);
  color: white;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  opacity: 0.6;
}

/* Login Footer */
.login-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(59, 130, 246, 0.15);
}

.login-footer a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.login-footer a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.separator {
  margin: 0 1rem;
  color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-container {
    padding: 1rem;
  }
  
  .login-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }
  
  .login-header h2 {
    font-size: 1.75rem;
  }
  
  .login-header img {
    width: 60px;
    height: 60px;
  }
  
  .terms-section {
    padding: 1.25rem;
  }
  
  .form-control {
    padding: 0.875rem 1rem;
  }
  
  .btn-lg {
    padding: 0.875rem 1.5rem;
  }
  
  .login-shape {
    display: none; /* Hide floating shapes on mobile for performance */
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 1.5rem;
  }
  
  .login-header h2 {
    font-size: 1.5rem;
  }
  
  .terms-checkboxes {
    gap: 0.75rem;
  }
  
  .terms-check {
    padding: 0.5rem;
  }
}

/* Loading Animation */
.login-card.loading {
  pointer-events: none;
}

.login-card.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Focus Styles for Accessibility */
.form-check-input:focus,
.btn-lg:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Smooth Animations */
* {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}