/* High-End Dynamic Auth Pages with Product Advertising */

:root {
  --auth-primary: #2874f0;
  --auth-primary-dark: #1e5fc4;
  --auth-secondary: #fb641b;
  --auth-accent-1: #00bcd4;
  --auth-accent-2: #9c27b0;
  --auth-accent-3: #ff5722;
  --auth-accent-4: #4caf50;
  --auth-gradient-1: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
  --auth-gradient-2: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --auth-gradient-3: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
  --auth-gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.auth-page-wrapper {
  position: relative;
  min-height: 100vh;
  background: var(--flipkart-gray);
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Animated Background with Products */
.auth-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* Modern Cyan/Teal Gradient - Brand Colors */
  background: linear-gradient(135deg, #00bcd4 0%, #0097a7 30%, #00838f 60%, #00acc1 100%);
  /* Alternative options (uncomment to use):
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #00bcd4 100%); // Blue/Cyan
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%); // Purple/Pink
  background: linear-gradient(135deg, #fa709a 0%, #fee140 50%, #30cfd0 100%); // Pink/Yellow/Teal
  background: linear-gradient(135deg, #30cfd0 0%, #330867 50%, #667eea 100%); // Teal/Purple
  */
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  overflow: hidden;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Product Advertising Grid */
.auth-products-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 40px;
  opacity: 0.15;
  animation: floatProducts 20s ease-in-out infinite;
  transform: rotate(-2deg);
}

@keyframes floatProducts {
  0%, 100% { transform: rotate(-2deg) translateY(0px); }
  50% { transform: rotate(2deg) translateY(-20px); }
}

.auth-product-card-bg {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, opacity 0.3s ease;
  animation: cardFloat 6s ease-in-out infinite;
}

.auth-product-card-bg:nth-child(odd) {
  animation-delay: -2s;
}

.auth-product-card-bg:nth-child(3n) {
  animation-delay: -4s;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-15px) scale(1.05); }
}

.auth-product-image-bg {
  width: 100%;
  height: 150px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  padding: 10px;
}

.auth-product-title-bg {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 10px;
  text-align: center;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Main Content Container */
.auth-main-content {
  position: relative;
  z-index: 10;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  width: 100%;
  flex: 1;
}

.auth-form-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.5);
  padding: 50px;
  max-width: 500px;
  width: 100%;
  position: relative;
  overflow: hidden;
  animation: slideInUp 0.6s ease-out;
  margin: 0 auto;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--auth-gradient-1);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Form Header */
.auth-header {
  text-align: center;
  margin-bottom: 40px;
  width: 100%;
}

.auth-title {
  font-size: 32px;
  font-weight: 700;
  background: var(--auth-gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.auth-subtitle {
  color: #666;
  font-size: 16px;
  margin-bottom: 5px;
  text-align: center;
  width: 100%;
}

.auth-description {
  color: #999;
  font-size: 14px;
  text-align: center;
  width: 100%;
}

/* Form Elements */
.auth-form-group {
  margin-bottom: 25px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.auth-form-label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 14px;
  text-align: left;
  width: 100%;
}

.auth-form-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #fff;
  box-sizing: border-box;
}

.auth-form-input:focus {
  outline: none;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 4px rgba(40, 116, 240, 0.1);
  transform: translateY(-2px);
}

.auth-form-input::placeholder {
  color: #bbb;
}

/* Buttons */
.auth-btn-primary {
  width: 100%;
  padding: 16px;
  background: var(--auth-gradient-1);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.auth-btn-primary::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;
}

.auth-btn-primary:hover::before {
  left: 100%;
}

.auth-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.auth-btn-primary:active {
  transform: translateY(0);
}

.auth-btn-google {
  width: 100%;
  padding: 14px;
  background: white;
  color: #333;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.auth-btn-google:hover {
  border-color: #4285f4;
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.2);
  transform: translateY(-2px);
}

.auth-btn-secondary {
  width: 100%;
  padding: 14px;
  background: transparent;
  color: var(--auth-primary);
  border: 2px solid var(--auth-primary);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.auth-btn-secondary:hover {
  background: var(--auth-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(40, 116, 240, 0.3);
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
  color: #999;
  font-size: 14px;
  width: 100%;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

.auth-divider span {
  padding: 0 15px;
}

/* Links */
.auth-link {
  color: var(--auth-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.auth-link:hover {
  color: var(--auth-primary-dark);
  text-decoration: underline;
}

/* Alerts */
.auth-alert {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInDown 0.4s ease-out;
  width: 100%;
  box-sizing: border-box;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-alert-danger {
  background: #fee;
  color: #c33;
  border: 1px solid #fcc;
}

.auth-alert-success {
  background: #efe;
  color: #3c3;
  border: 1px solid #cfc;
}

/* Trust Badges */
.auth-trust-badges {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
  width: 100%;
}

.auth-trust-title {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin-bottom: 20px;
  text-align: center;
  width: 100%;
}

.auth-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  width: 100%;
}

.auth-trust-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.auth-trust-item:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.auth-trust-icon {
  font-size: 20px;
}

.auth-trust-text {
  font-size: 13px;
  color: #555;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .auth-form-container {
    padding: 30px 20px;
    margin: 20px auto;
    max-width: calc(100% - 40px);
  }
  
  .auth-main-content {
    padding: 20px 10px;
  }
  
  .auth-title {
    font-size: 26px;
  }
  
  .auth-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    padding: 20px;
    opacity: 0.1;
  }
  
  .auth-product-image-bg {
    height: 100px;
  }
  
  .auth-product-title-bg {
    font-size: 10px;
  }
  
  .auth-form-group {
    width: 100%;
  }
  
  .auth-form-input,
  .auth-btn-primary,
  .auth-btn-secondary,
  .auth-btn-google {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .auth-form-container {
    padding: 25px 15px;
    margin: 15px auto;
    max-width: calc(100% - 30px);
  }
  
  .auth-main-content {
    padding: 15px 5px;
  }
  
  .auth-title {
    font-size: 22px;
  }
  
  .auth-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    padding: 15px;
  }
  
  .auth-trust-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .auth-form-group {
    width: 100%;
  }
  
  .auth-form-input,
  .auth-btn-primary,
  .auth-btn-secondary,
  .auth-btn-google {
    width: 100%;
    box-sizing: border-box;
  }
}

/* Additional Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.auth-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Loading States */
.auth-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.auth-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--auth-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Footer Styling for Auth Pages */
.auth-page-wrapper + footer,
body > footer {
  position: relative !important;
  z-index: 1000 !important;
  background: rgba(33, 37, 41, 0.98) !important;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0 !important;
  width: 100% !important;
  min-height: auto !important;
  padding: 50px 0 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.auth-page-wrapper footer {
  position: relative !important;
  z-index: 1000 !important;
  background: rgba(33, 37, 41, 0.98) !important;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0 !important;
  width: 100% !important;
  min-height: auto !important;
  padding: 50px 0 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.auth-page-wrapper footer .container {
  position: relative;
  z-index: 21;
}

.auth-page-wrapper footer .text-primary {
  color: #00bcd4 !important;
}

.auth-page-wrapper footer .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-right: 10px;
  margin-top: 10px;
}

.auth-page-wrapper footer .social-link:hover {
  background: #00bcd4;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.4);
}

.auth-page-wrapper footer .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

.auth-page-wrapper footer .text-white {
  color: #fff !important;
}

.auth-page-wrapper footer a.text-muted:hover {
  color: #00bcd4 !important;
}

.auth-page-wrapper footer .btn-primary {
  background: #00bcd4;
  border-color: #00bcd4;
}

.auth-page-wrapper footer .btn-primary:hover {
  background: #0097a7;
  border-color: #0097a7;
}

.auth-page-wrapper footer hr.border-secondary {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

@media (max-width: 768px) {
  .auth-page-wrapper footer {
    padding: 30px 0 !important;
  }
  
  .auth-page-wrapper footer .col-lg-3 {
    margin-bottom: 30px;
  }
}

