/* --- LOGIN PAGE STYLES --- */

/* Login Section - Full height and vertical centering */
.login-section {
  min-height: 500px;
  height: 80dvh;
  display: flex;
  align-items: center;
}

/* Login Card with Animated Gradient Border */
.login-card {
  position: relative;
  border-radius: 20px;
  padding: 3px;
  background: linear-gradient(45deg, #667eea 0%, #764ba2 20%, #f093fb 40%, #f5576c 60%, #4facfe 80%, #00f2fe 100%);
  background-size: 300% 100%;
  animation: borderGradientShift 8s ease-in-out infinite;
  will-change: background-position;
}

.login-card-content {
  background: var(--card-bg);
  border-radius: 17px;
  padding: 2.5rem;
  height: 100%;
  transition: transform 0.3s ease;
}

.login-card:hover .login-card-content {
  transform: scale(0.98);
}

/* Login Header */
.login-header h2 {
  color: var(--text-color);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: var(--secondary-color);
  font-size: 0.95rem;
}

/* PIN Verification Styles */
.pin-verification-section {
  animation: fadeInUp 0.5s ease-out;
}

.pin-message {
  margin-bottom: 2rem;
}

.pin-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.pin-icon i {
  background: linear-gradient(45deg, var(--primary-color), #0b5ed7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pin-inputs {
  margin-bottom: 2rem;
}

.pin-input-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  max-width: 360px;
  margin: 0 auto;
}

.pin-input {
  width: 100%;
  height: 60px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  background: var(--card-bg);
  color: var(--text-color);
  transition: all 0.3s ease;
  outline: none;
}

.pin-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
  transform: scale(1.05);
}

.pin-input.filled {
  border-color: var(--primary-color);
  background: rgba(13, 110, 253, 0.05);
}

.pin-input.error {
  border-color: #dc3545;
  background: rgba(220, 53, 69, 0.05);
}

/* Resend Button Styles */
.resend-section {
  margin-top: 1.5rem;
}

.resend-btn {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  border: none;
  background: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.resend-btn:hover:not(:disabled) {
  color: #0b5ed7;
  background: rgba(13, 110, 253, 0.1);
  text-decoration: none;
}

.resend-btn:disabled {
  color: var(--secondary-color);
  cursor: not-allowed;
  opacity: 0.6;
}

.countdown {
  color: var(--secondary-color);
  font-weight: 500;
}

/* Loading States */
.btn-loader {
  display: none;
}

.btn.loading .btn-text {
  display: none;
}

.btn.loading .btn-loader {
  display: inline-block;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes borderGradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Social Login Buttons */
.social-buttons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  border: 2px solid var(--border-color);
  border-radius: 16px;
  background: var(--card-bg);
  color: var(--text-color);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: var(--text-color);
}

.social-btn i {
  font-size: 1.3rem;
  width: 24px;
  text-align: center;
}

/* Google Button */
.google-btn {
  border-color: #4285f4;
  color: #4285f4;
}

.google-btn:hover {
  background: #4285f4;
  color: white;
  border-color: #4285f4;
}

/* Facebook Button */
.facebook-btn {
  border-color: #1877f2;
  color: #1877f2;
}

.facebook-btn:hover {
  background: #1877f2;
  color: white;
  border-color: #1877f2;
}

/* Apple Button */
.apple-btn {
  border-color: #000000;
  color: #000000;
}

.apple-btn:hover {
  background: #000000;
  color: white;
  border-color: #000000;
}

/* Dark mode social buttons */
[data-theme="dark"] .social-btn {
  background: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-color);
}

[data-theme="dark"] .google-btn {
  border-color: #4285f4;
  color: #4285f4;
}

[data-theme="dark"] .google-btn:hover {
  background: #4285f4;
  color: white;
}

[data-theme="dark"] .facebook-btn {
  border-color: #1877f2;
  color: #1877f2;
}

[data-theme="dark"] .facebook-btn:hover {
  background: #1877f2;
  color: white;
}

[data-theme="dark"] .apple-btn {
  border-color: #ffffff;
  color: #ffffff;
}

[data-theme="dark"] .apple-btn:hover {
  background: #ffffff;
  color: #000000;
}

/* Divider */
.divider-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.divider-text {
  color: var(--secondary-color);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0 8px;
}

/* Modern Input for Magic Link */
.modern-gradient-input {
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 16px 20px;
  font-size: 1rem;
  background: var(--card-bg);
  color: var(--text-color);
  transition: all 0.3s ease;
}

.modern-gradient-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.modern-gradient-input::placeholder {
  color: var(--secondary-color);
  opacity: 0.7;
}

/* Auth Option */
.auth-option {
  margin-bottom: 1.5rem;
}

.magic-link-form {
  width: 100%;
}

/* Sign Up Link */
.signup-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.signup-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Email login button - solid color instead of gradient */
.btn-gradient-cta {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 16px 0 rgba(13, 110, 253, 0.15);
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-gradient-cta:hover,
.btn-gradient-cta:focus {
  background: #0b5ed7;
  color: #fff;
  text-decoration: none;
  outline: none;
  box-shadow: 0 6px 20px 0 rgba(13, 110, 253, 0.25);
  transform: translateY(-1px);
}

.btn-gradient-cta:disabled {
  background: var(--secondary-color);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Dark mode support for email login button */
[data-theme="dark"] .btn-gradient-cta {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(13, 110, 253, 0.25);
}

[data-theme="dark"] .btn-gradient-cta:hover,
[data-theme="dark"] .btn-gradient-cta:focus {
  background: #0b5ed7;
  color: #fff;
  box-shadow: 0 6px 20px 0 rgba(13, 110, 253, 0.35);
}

/* Responsive adjustments for login */
@media (max-width: 768px) {
  .login-card-content {
    padding: 2rem !important;
  }
  
  .social-buttons-grid {
    gap: 10px;
  }
  
  .social-btn {
    padding: 14px 16px;
    font-size: 0.95rem;
  }
  
  .login-header h2 {
    font-size: 1.5rem;
  }
  
  .pin-input-grid {
    gap: 8px;
  }
  
  .pin-input {
    height: 50px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .login-card-content {
    padding: 1.5rem !important;
  }
  
  .social-btn {
    padding: 12px 14px;
    font-size: 0.9rem;
  }
  
  .modern-gradient-input {
    padding: 14px 16px;
    font-size: 0.95rem;
  }
  
  .login-header h2 {
    font-size: 1.4rem;
  }
  
  .pin-input-grid {
    gap: 6px;
  }
  
  .pin-input {
    height: 45px;
    font-size: 1.1rem;
  }
} 