/* Styles for Trainerflix website */

/* Base transitions */
* {
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}
:root {
  --red-gradient: linear-gradient(180deg, #e81b5b 0%, #d62836 100%);
  --blue-gradient: linear-gradient(180deg, #457b9d 0%, #1d3557 100%);
  --button: linear-gradient(180deg, #ffffff 0%, #e7e7e7 100%);
  --progress: linear-gradient(135deg, #e81b5b 0%, #f1faee 50.17%, #a8dadc 100%);
  --primary: #e81b5b;
}

/* Animations */
html[dir="rtl"] body {
  font-family: "Tajawal", sans-serif;
}
html[dir="ltr"] body {
  font-family: "Raleway", sans-serif;
  font-style: normal;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
.Rock-bold {
  font-family: "Rock Salt", cursive;
  font-weight: 700;
  font-style: normal;
}

.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
}

.pulse {
  animation: pulse 1s infinite ease-in-out;
}

@keyframes backgroundPulse {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

body {
  background: linear-gradient(-45deg, #ff9a9e, #fad0c4, #ffecd2, #fcb69f);
  background-size: 400% 400%;
  animation: fadeIn 0.3s ease-in forwards, backgroundPulse 15s ease infinite;
  position: relative;
  color: #ffffff;
  margin: 0;
  opacity: 0;
  min-height: 100vh;
  font-family: 'Raleway', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Remove particles container */
.particles-container {
  display: none;
}
.form-box {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  margin-top: 5px;
}
.pink-box {
  background-color: #e81b5b;
  color: #ffffff;
}
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  width: 100%;
  height: 100%;
  z-index: -1;
}

.service-log img {
  filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.3));
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.service-log img:hover {
  transform: scale(1.05);
}
.legal_text a {
  color: #e81b5b !important;
}

/* Form focus effects */
#phoneInputContainer:focus-within,
#pinInputContainer:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

/* Button hover effects */
button[type="submit"] {
  transition: all 0.3s ease;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(230, 57, 70, 0.3);
}

button[type="submit"]:active {
  transform: translateY(0);
}
.theme-btn {
  background: linear-gradient(135deg, #e81b5b 0%, #c4103e 100%);
  color: #ffffff;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: bold;
  letter-spacing: 1px;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

  &:hover {
    background: linear-gradient(135deg, #f02e6b 0%, #d41344 100%);
  }
  
  &:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  }
}

/* language switcher */
/* Basic dropdown wrapper */
.dropdown.lang-swticher {
  position: relative;
  display: inline-block;
  text-align: right;
}

/* Button styling */
.lang-swticher .dropdown-button {
  background-color: transparent; /* Tailwind 'blue-500' */
  color: #ffffff;
  padding: 6px 18px 6px 6px;
  font-size: 12px;
  text-align: center;
  /* border: none; */
  border-radius: 10px;
  cursor: pointer;
  text-transform: uppercase;
  min-width: 80px;
  outline: 2px solid var(--primary);
}

/* Dropdown content */
.lang-swticher .dropdown-content {
  display: none;
  position: absolute;
  top: 100%; /* below the button */
  left: 0;
  min-width: 100%;
  background-color: white;
  border: 1px solid #e2e8f0; /* Tailwind 'gray-200' */
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
  text-align: center;
  overflow: hidden;
}

/* Individual language links */
.lang-swticher .dropdown-content a {
  color: #000000; /* Tailwind 'gray-800' */
  padding: 2px 12px;
  text-decoration: none;
  font-size: 13px;
  display: block;
  white-space: nowrap;
}

/* Hover effect */
.lang-swticher .dropdown-content a:hover {
  background-color: var(--primary);
  color: #ffffff !important;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}
.down-arrow {
  display: inline-block;
  position: relative;
  width: 0;
  height: 8px;
}

.down-arrow::after {
  content: "";
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #ffffff;
  position: absolute;
  top: 0;
  left: 2px;
}

/* Logo container styles */
.logo-container {
  height: auto;
  width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.logo-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* legal-content */
.legal-content p {
  margin-bottom: 10px;
}

/* RTL support */
html[dir="rtl"] .space-x-4 > * + * {
  margin-right: 1rem;
  margin-left: 0;
}

/* Critical form styles */
#pinInputContainer,
#phoneInputContainer {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  color: #000000;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  font-size: 16px;
  margin-bottom: 15px;
}

#pinInputContainer:focus-within,
#phoneInputContainer:focus-within {
  border-color: #e81b5b;
  box-shadow: 0 4px 12px rgba(232, 27, 91, 0.25);
  transform: translateY(-2px);
}
.pin-input {
  color: #374151;
  background: #ffffff;
}
.phone-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  outline: none;
  color: #374151;
  background: #ffffff;
}
.legal_text {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  padding: 15px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.legal_text ul li {
  list-style-type: disc;
  margin: 4px 20px;
  font-size: 12px;
  line-height: 1.2;
}

.legal_text p {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 14px;
}
.exit-btn {
  text-align: center;
  margin-top: 10px;
}
.exit-btn a {
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  display: inline-block;
  font-size: 14px;
}

.exit-btn a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
/* Loading spinner */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 3px solid white;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@media screen and (max-width: 480px) {
  .logo-container {
    width: 118px;
  }
  #form-title {
    font-size: 13px;
  }
  .text-custom {
    font-size: 10px !important;
  }
  .dropdown.lang-swticher {
    margin-top: -3px;
  }
}
