/* ===============================================
   PROFESSIONAL EXCHANGE RECORDAR STYLES
   =============================================== */

/* Force dark mode styles */
html, body {
  background: #06090b !important;
  color: #f3f4f6 !important;
  overflow-x: hidden;
  min-height: 100vh;
}

body {
  background: #06090b !important;
  position: relative;
  display: flex;
  flex-direction: column;
}

.crypt-dark, .crypt-light {
  background: #06090b !important;
  color: #f3f4f6 !important;
}

/* Professional theme variables */
:root {
  --color-bg: #06090b !important;
  --card-color: #0f1419 !important;
  --color-primary-100: #f3f4f6 !important;
  --color-input-field: #1b1b1b !important;
  --professional-blue: #3b82f6;
  --professional-blue-dark: #1e40af;
  --accent-gold: #f59e0b;
  --text-muted: #9ca3af;
}

/* Subtle Animated Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.015) 0%, transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.015) 0%, transparent 60%),
    radial-gradient(circle at 50% 90%, rgba(16, 245, 105, 0.01) 0%, transparent 50%);
  z-index: -2;
  animation: backgroundPulse 12s ease-in-out infinite;
}

@keyframes backgroundPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

@keyframes floatingCrypto {
  0% { transform: translateY(100vh) rotate(0deg); }
  100% { transform: translateY(-20vh) rotate(360deg); }
}

@keyframes floatElement {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
  }
  50% { 
    transform: translateY(-2px) rotate(0.5deg); 
  }
}

@keyframes rippleEffect {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* Crypto Symbols Background */
.crypto-symbols-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.crypto-symbol {
  position: absolute;
  font-size: 2rem;
  color: rgba(59, 130, 246, 0.1);
  font-weight: bold;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
  animation-duration: 15s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Individual crypto symbol positions and animations */
.crypto-1 { left: 10%; animation: float1 20s infinite; font-size: 1.8rem; }
.crypto-2 { left: 20%; animation: float2 25s infinite; font-size: 2.2rem; }
.crypto-3 { left: 30%; animation: float3 18s infinite; font-size: 1.6rem; }
.crypto-4 { left: 40%; animation: float4 22s infinite; font-size: 2rem; }
.crypto-5 { left: 50%; animation: float5 28s infinite; font-size: 1.9rem; }
.crypto-6 { left: 60%; animation: float6 16s infinite; font-size: 2.1rem; }
.crypto-7 { left: 70%; animation: float7 24s infinite; font-size: 1.7rem; }
.crypto-8 { left: 80%; animation: float8 19s infinite; font-size: 2.3rem; }
.crypto-9 { left: 15%; animation: float9 21s infinite; font-size: 1.5rem; }
.crypto-10 { left: 35%; animation: float10 26s infinite; font-size: 2rem; }
.crypto-11 { left: 55%; animation: float11 17s infinite; font-size: 1.8rem; }
.crypto-12 { left: 75%; animation: float12 23s infinite; font-size: 1.9rem; }
.crypto-13 { left: 85%; animation: float13 20s infinite; font-size: 2.2rem; }
.crypto-14 { left: 25%; animation: float14 27s infinite; font-size: 1.6rem; }
.crypto-15 { left: 65%; animation: float15 15s infinite; font-size: 2.4rem; }

@keyframes float1 { 0% { transform: translateY(110vh) rotate(0deg); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; } }
@keyframes float2 { 0% { transform: translateY(110vh) rotate(0deg); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(-10vh) rotate(-360deg); opacity: 0; } }
@keyframes float3 { 0% { transform: translateY(110vh) rotate(0deg); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(-10vh) rotate(270deg); opacity: 0; } }
@keyframes float4 { 0% { transform: translateY(110vh) rotate(0deg); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translateY(-10vh) rotate(-270deg); opacity: 0; } }
@keyframes float5 { 0% { transform: translateY(110vh) rotate(0deg); opacity: 0; } 18% { opacity: 1; } 82% { opacity: 1; } 100% { transform: translateY(-10vh) rotate(180deg); opacity: 0; } }
@keyframes float6 { 0% { transform: translateY(110vh) rotate(0deg); opacity: 0; } 14% { opacity: 1; } 86% { opacity: 1; } 100% { transform: translateY(-10vh) rotate(-180deg); opacity: 0; } }
@keyframes float7 { 0% { transform: translateY(110vh) rotate(0deg); opacity: 0; } 16% { opacity: 1; } 84% { opacity: 1; } 100% { transform: translateY(-10vh) rotate(450deg); opacity: 0; } }
@keyframes float8 { 0% { transform: translateY(110vh) rotate(0deg); opacity: 0; } 11% { opacity: 1; } 89% { opacity: 1; } 100% { transform: translateY(-10vh) rotate(-450deg); opacity: 0; } }
@keyframes float9 { 0% { transform: translateY(110vh) rotate(0deg); opacity: 0; } 13% { opacity: 1; } 87% { opacity: 1; } 100% { transform: translateY(-10vh) rotate(300deg); opacity: 0; } }
@keyframes float10 { 0% { transform: translateY(110vh) rotate(0deg); opacity: 0; } 9% { opacity: 1; } 91% { opacity: 1; } 100% { transform: translateY(-10vh) rotate(-300deg); opacity: 0; } }
@keyframes float11 { 0% { transform: translateY(110vh) rotate(0deg); opacity: 0; } 17% { opacity: 1; } 83% { opacity: 1; } 100% { transform: translateY(-10vh) rotate(240deg); opacity: 0; } }
@keyframes float12 { 0% { transform: translateY(110vh) rotate(0deg); opacity: 0; } 19% { opacity: 1; } 81% { opacity: 1; } 100% { transform: translateY(-10vh) rotate(-240deg); opacity: 0; } }
@keyframes float13 { 0% { transform: translateY(110vh) rotate(0deg); opacity: 0; } 7% { opacity: 1; } 93% { opacity: 1; } 100% { transform: translateY(-10vh) rotate(120deg); opacity: 0; } }
@keyframes float14 { 0% { transform: translateY(110vh) rotate(0deg); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(-10vh) rotate(-120deg); opacity: 0; } }
@keyframes float15 { 0% { transform: translateY(110vh) rotate(0deg); opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { transform: translateY(-10vh) rotate(480deg); opacity: 0; } }

/* Enhanced Header */
.crypt-header {
  background: rgba(6, 9, 11, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Futuristic Logo Glow */
.crypt-logo img {
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
  transition: all 0.3s ease;
}

.crypt-logo:hover img {
  filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.6));
  transform: scale(1.05);
}

/* Professional Recordar Form */
.crypt-login-form {
  background: linear-gradient(145deg, rgba(15, 23, 30, 0.95), rgba(8, 14, 20, 0.95));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  max-width: 420px;
  margin: 0 auto;
}

/* Subtle professional glow */
.crypt-login-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.03), rgba(255, 255, 255, 0.02));
  border-radius: 16px;
  z-index: -1;
  opacity: 1;
}

/* Enhanced Form Controls */
.form-control {
  background: rgba(27, 27, 27, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  color: #fff !important;
  padding: 1rem 1.5rem !important;
  font-size: 1rem !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px);
}

.form-control:focus {
  background: rgba(27, 27, 27, 0.95) !important;
  border-color: #00d4ff !important;
  box-shadow: 
    0 0 0 0.2rem rgba(0, 212, 255, 0.25),
    0 0 20px rgba(0, 212, 255, 0.2) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

/* Professional Button */
.btn-primary {
  background: linear-gradient(135deg, #1e40af, #3b82f6) !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.9rem 2rem !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  text-transform: none !important;
  letter-spacing: 0.3px !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

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

.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4) !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
}

.btn-primary:hover::before {
  left: 100%;
}

/* Professional Exchange Theme */
h3.fw-bold {
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 1.8rem !important;
  text-align: center !important;
  margin-bottom: 0.5rem !important;
  position: relative;
}

h3.fw-bold::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(135deg, var(--professional-blue), var(--accent-gold));
  border-radius: 2px;
}

/* Professional Labels */
.form-label {
  color: #ffffff !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  text-transform: none !important;
  letter-spacing: 0.2px !important;
  margin-bottom: 0.5rem !important;
}

/* Info text styling */
.text-muted, .text-secondary {
  color: #9ca3af !important;
  font-size: 0.9rem !important;
  line-height: 1.4 !important;
}

/* Ensure all text is white by default */
.crypt-login-form p, 
.crypt-login-form label, 
.crypt-login-form .form-check-label,
.crypt-login-form .text-secondary {
  color: #ffffff !important;
}

/* Required asterisks in red */
.text-danger, .crypt-grayscale-600 {
  color: #ef4444 !important;
}

/* Professional Links */
.link-primary {
  color: var(--accent-gold) !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  position: relative !important;
}

.link-primary::before {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background: var(--professional-blue);
  transition: width 0.3s ease;
}

.link-primary:hover {
  color: var(--professional-blue) !important;
}

.link-primary:hover::before {
  width: 100%;
}

/* Parallax container */
.container {
  position: relative;
  z-index: 2;
}

/* Parallax effect for recordar form */
.crypt-login-form {
  transition: transform 0.15s ease-out !important;
  will-change: transform;
}

/* Parallax responsiveness - only on desktop */
@media (min-width: 769px) {
  .crypt-login-form.parallax-active {
    transform: translateX(var(--parallax-x, 0)) translateY(var(--parallax-y, 0));
  }
  
  .crypt-login-form.parallax-active:hover {
    transform: translateX(var(--parallax-x, 0)) translateY(var(--parallax-y, 0)) translateY(-3px);
  }
}

/* Professional Footer */
.professional-footer {
  background: rgba(8, 14, 20, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin-top: auto !important;
  padding: 2.5rem 0 1.5rem 0 !important;
  position: relative;
}

.professional-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: #ffffff !important;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--professional-blue), var(--accent-gold));
  border-radius: 2px;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.crypto-icons {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  align-items: center;
}

.crypto-icons i,
.crypto-icons .crypto-symbol {
  font-size: 1.8rem;
  color: var(--professional-blue);
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 0.8;
}

.crypto-icons i:hover,
.crypto-icons .crypto-symbol:hover {
  color: var(--accent-gold);
  transform: translateY(-2px) scale(1.1);
  opacity: 1;
  text-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.security-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.security-badge {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #ffffff !important;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.security-badge:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
}

.footer-bottom {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.85rem;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .professional-footer {
    padding: 2rem 0 1rem 0 !important;
  }
  
  .crypto-icons {
    justify-content: center;
  }
  
  .security-badges {
    justify-content: center;
  }
}

footer {
  background: rgba(8, 14, 20, 0.9) !important;
  backdrop-filter: blur(15px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin-top: auto !important;
}

/* Footer links styling */
.crypt-footer-copyright a.text-link {
  color: #ffffff !important;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.crypt-footer-copyright a.text-link:hover {
  color: var(--professional-blue) !important;
}

.crypt-footer-copyright {
  margin-top: 1rem;
  padding-top: 1rem;
}

/* Additional footer spacing fixes */
.professional-footer .container {
  padding-left: 1rem;
  padding-right: 1rem;
}

.professional-footer .mt-4 {
  margin-top: 1rem !important;
}

.crypto-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.crypto-icon-item:hover {
  transform: translateY(-2px);
}

.crypto-icon-item svg {
  transition: all 0.3s ease;
}

.crypto-icon-item:hover svg {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

footer .text-link:hover {
  color: #3b82f6 !important;
  transition: color 0.3s ease !important;
}

/* Security badges styling */
footer .d-flex.align-items-center.gap-2 {
  font-size: 0.85rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  color: #ffffff !important;
}

footer .d-flex.align-items-center.gap-2:hover {
  opacity: 1;
}

/* Ensure all footer text is white */
footer p, footer small, footer .text-muted, footer .crypto-icon-item small {
  color: #ffffff !important;
}

footer .text-link {
  color: #ffffff !important;
}

footer .text-link:hover {
  color: #3b82f6 !important;
  transition: color 0.3s ease !important;
}

/* Enhanced Mobile Responsive */
@media (max-width: 768px) {
  .crypt-login-form {
    padding: 2rem 1.5rem !important;
    margin: 1rem !important;
    max-width: 95% !important;
  }
  
  h3.fw-bold {
    font-size: 1.6rem !important;
  }
  
  body::after {
    background-size: 120px 100px;
  }
  
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .form-control {
    padding: 0.9rem 1.2rem !important;
    font-size: 0.95rem !important;
    min-height: 50px !important;
  }
  
  .btn-primary {
    padding: 0.9rem 1.5rem !important;
    font-size: 1rem !important;
    width: 100% !important;
    min-height: 50px !important;
  }
  
  /* Crypto symbols less intrusive on mobile */
  .crypto-symbol {
    font-size: 1.5rem !important;
    opacity: 0.6 !important;
  }
}

@media (max-width: 480px) {
  .crypt-login-form {
    padding: 1.5rem 1rem !important;
    margin: 0.5rem !important;
    max-width: 98% !important;
    border-radius: 12px !important;
  }
  
  h3.fw-bold {
    font-size: 1.4rem !important;
  }
  
  .form-control {
    padding: 0.8rem 1rem !important;
    font-size: 0.9rem !important;
  }
  
  .btn-primary {
    padding: 0.9rem 1.2rem !important;
    font-size: 0.95rem !important;
    width: 100% !important;
  }

  .form-label {
    font-size: 0.85rem !important;
  }
  
  .text-muted, .text-secondary {
    font-size: 0.8rem !important;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .crypt-login-form {
    padding: 1rem 0.75rem !important;
    margin: 0.25rem !important;
    border-radius: 8px !important;
  }
  
  h3.fw-bold {
    font-size: 1.3rem !important;
  }
  
  .form-control {
    padding: 0.75rem 0.9rem !important;
    font-size: 0.85rem !important;
  }
}

/* Subtle hover effects for form - only on desktop */
@media (min-width: 769px) {
  .crypt-login-form:hover:not(.parallax-active) {
    transform: translateY(-3px);
    box-shadow: 
      0 20px 40px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 0 60px rgba(0, 212, 255, 0.1);
  }
  
  .crypt-login-form.parallax-active:hover {
    box-shadow: 
      0 20px 40px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 0 60px rgba(0, 212, 255, 0.1);
  }
}