/* GLOBAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: "Inter", Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #e2e8f0;
  overflow: hidden;
}

/* BACKGROUND GRADIENT */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  z-index: -2;
}

/* LEFT PERSON ILLUSTRATION */
body::after {
  content: '👨‍💻';
  position: fixed;
  left: 3%;
  bottom: 15%;
  font-size: 180px;
  opacity: 0.8;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
  animation: personFloat 4s ease-in-out infinite;
  z-index: 1;
}

/* RIGHT PERSON ILLUSTRATION */
html::before {
  content: '👩‍💻';
  position: fixed;
  right: 3%;
  bottom: 15%;
  font-size: 180px;
  opacity: 0.8;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
  animation: personFloat 4s ease-in-out infinite 0.5s;
  z-index: 1;
}

@keyframes personFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* RIGHT SIDE - ANIMATED SILENTMINDS LOGO */
.right-animated-section {
  position: fixed;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 0;
  padding: 40px;
}

.animated-logo-container {
  text-align: center;
  opacity: 0;
  animation: fadeInLeft 1s ease-out 0.2s forwards;
}

.animated-logo-svg {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  filter: drop-shadow(0 8px 20px rgba(102, 126, 234, 0.4));
  animation: logoPulse 2s ease-in-out infinite;
}

.animated-logo-text {
  font-size: 48px;
  font-weight: 800;
  background: #bcd4ff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  animation: textGlow 2s ease-in-out infinite;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes textGlow {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 40px rgba(118, 75, 162, 0.5));
  }
}

/* LEFT SIDE - ANIMATED TEXT */
.left-animated-section {
  position: fixed;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 0;
  padding: 40px;
}

.animated-text-container {
  text-align: center;
  max-width: 400px;
}

.animated-word {
  font-size: 30px;
  font-weight: 500;
  color: #bcd4ff;
  display: inline-block;
  margin-right: 10px;
  opacity: 0.35;
  animation: fadeInWord 0.6s ease-out forwards;
  line-height: 1.4;
}

.animated-word:nth-child(1) { animation-delay: 0.3s; }
.animated-word:nth-child(2) { animation-delay: 1s; }
.animated-word:nth-child(3) { animation-delay: 1.7s; }
.animated-word:nth-child(4) { animation-delay: 2.4s; }
.animated-word:nth-child(5) { animation-delay: 3.1s; }
.animated-word:nth-child(6) { animation-delay: 3.8s; }
.animated-word:nth-child(7) { animation-delay: 4.5s; }
.animated-word:nth-child(8) { animation-delay: 5.2s; }
.animated-word:nth-child(9) { animation-delay: 5.9s; }
.animated-word:nth-child(10) { animation-delay: 6.2s;}
.animated-word:nth-child(11) { animation-delay: 6.6s;}
.animated-word:nth-child(12) { animation-delay: 7.3s; }
.animated-word{
  animation: fadeWord 8s linear infinite;
}
@keyframes fadeWord {

  0% {
    opacity:0;
    transform: translateY(10px);
  }

  20% {
    opacity:1;
  }

  80% {
    opacity:1;
  }

  100% {
    opacity:0;
    transform: translateY(-10px);
  }

}
/* AUTH CONTAINER */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* AUTH CARD */
.auth-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 25px;
  padding: 50px;
  width: 100%;
  max-width: 420px;
  box-shadow: 
    0 8px 32px rgba(102, 126, 234, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.8);
  animation: slideUp 0.6s ease-out;
}

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

/* AUTH LOGO */
.auth-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  min-height: 72px;
}

.logo-icon {
  width: 60px;
  height: 60px;
  display: block;
  flex-shrink: 0;
  overflow: visible;
  filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.4));
  animation: logoBounce 2s ease-in-out infinite;
}

@keyframes logoBounce {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* AUTH TITLE */
.auth-card h2 {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
  color: #1f2937;
}

.auth-subtitle {
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 30px;
  line-height: 1.5;
}

/* FORM */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-input {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: #1f2937;
  font-family: "Inter", Arial, sans-serif;
  transition: all 0.3s ease;
}

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

.form-input:focus {
  outline: none;
  background: #ffffff;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* FORM OPTIONS */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.3s ease;
}

.remember-me:hover {
  color: #1f2937;
}

.remember-me input {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #667eea;
}

.forgot-password {
  color: #667eea;
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #764ba2;
}

/* AUTH BUTTON */
.auth-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  margin-top: 8px;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.auth-btn:active {
  transform: translateY(0);
}

/* DIVIDER */
.divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: #d1d5db;
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.divider span {
  padding: 0 12px;
  color: #9ca3af;
}

/* SOCIAL BUTTON */
.social-btn {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: #1f2937;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.social-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}

.google-btn {
  margin-top: 8px;
}

/* AUTH FOOTER */
.auth-footer {
  text-align: center;
  color: #6b7280;
  font-size: 13px;
  margin-top: 20px;
}

.auth-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.auth-link:hover {
  color: #764ba2;
}

.hidden {
  display: none;
}

[hidden] {
  display: none !important;
}

/* CHOICE VIEW */
.auth-choice {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.email-btn {
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: #ffffff;
  border: none;
}

.email-btn:hover {
  filter: brightness(1.05);
}

/* RESPONSIVE */

/* Hide mobile emojis on desktop by default */
.mobile-emoji-top,
.mobile-emoji-bottom {
  display: none;
}

/* Hidden by default on desktop */
.mobile-motivation {
  display: none;
}

@media (max-width: 1024px) {
  .left-animated-section,
  .right-animated-section {
    display: none;
  }

  .auth-container {
    position: relative;
    transform: none;
    top: auto;
    left: auto;
    min-height: 100vh;
  }

  body::after,
  html::before {
    font-size: 120px;
    opacity: 0.3;
  }
}

@media screen and (max-width: 768px) {
  body::before {
    display: none !important;
  }

  /* Hide desktop pseudo-element emojis */
  body::after,
  html::before {
    display: none !important;
  }

  /* Hide side sections */
  .right-animated-section,
  .left-animated-section {
    display: none !important;
  }

  /* Body becomes vertical flex column */
  html, body {
    height: 100%;
    overflow: hidden;
  }

  body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    background: #ffffff;
  }

  /* Show mobile emojis */
  .mobile-emoji-top,
  .mobile-emoji-bottom {
    display: none;
  }

  /* Auth container */
  .auth-container {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    min-height: unset !important;
    width: 100%;
    padding: 0 12px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
  }

  /* Card */
  .auth-card {
    padding: 32px 24px;
    width: 100%;
    max-width: 100%;
    min-height: 68vh;
    border-radius: 28px 28px 0 0;
    box-shadow: none;
    border: none;
  }

  .auth-card h2 {
    font-size: 36px;
    margin-bottom: 14px;
  }

  .auth-subtitle {
    font-size: 16px;
    margin-bottom: 34px;
  }

  .form-input {
    padding: 14px 16px;
    font-size: 15px;
  }

  .auth-btn {
    padding: 14px 18px;
    font-size: 15px;
  }

  .social-btn {
    padding: 15px 18px;
    font-size: 15px;
    margin-bottom: 18px;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Show mobile motivation words ONLY on mobile */
  .mobile-motivation {
    display: block;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #667eea;
    min-height: 22px;
    margin-bottom: 18px;
  }
}
