/* AlphaWorld Styles */

/* Base transitions */
* {
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

:root {
  --primary-gradient: linear-gradient(
    135deg,
    #6366f1 0%,
    #a855f7 50%,
    #ec4899 100%
  );
  --button-active: #4a90e2;
  --button-inactive: #e5e7eb;
  --text-dark: #1f2937;
  --text-light: #ffffff;
}

/* Animations */
html[dir="rtl"] body {
  font-family: "Tajawal", sans-serif;
}
html[dir="ltr"] body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulse {
  50% {
    transform: scale(1.05);
  }
}

body {
  background: #0be2e6;
  background: linear-gradient(
    326deg,
    rgba(11, 226, 230, 1) 0%,
    #6900fc 72%,
    #fc00da 97%
  );
  min-height: 100vh;
  color: #ffffff;
  margin: 0;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
}
/* Modern glass effect for containers */
.form-box {
  /* background: rgba(255, 255, 255, 0.1); */
  /* backdrop-filter: blur(10px); */
  /* -webkit-backdrop-filter: blur(10px); */
  /* border: 1px solid rgba(255, 255, 255, 0.2); */
  /* box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); */
  /* border-radius: 1rem; */
}

.pink-box {
  background-color: var(--button-active);
  color: #ffffff;
}

.service-log img {
  max-width: 100%;
  height: auto;
}

.legal_text a {
  color: #ec4899 !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(-3px);
  filter: brightness(1.05);
}

/* button[type="submit"].active:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
} */

/* button[type="submit"]:active {
  transform: translateY(0);
} */

/* Button attention animation */
@keyframes pulse-attention {
  0% {
    transform: scale(1);
    background-color: #9c27b0; /* Purple color that matches the theme */
  }

  50% {
    transform: scale(1.05);
    background-color: #8e24aa;
  }

  100% {
    transform: scale(1);
    background-color: #9c27b0;
  }
}

/* Fade in/out animation for button */
@keyframes fadeInOut {
  0% {
    opacity: 0.9;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.9;
  }
}

/* Button text animation */
@keyframes text-pulse {
  0% {
    opacity: 0.9;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.9;
  }
}

/* .pulse-animation {
  animation: pulse-attention 2s infinite;
} */
/* .theme-btn {
  background: var(--button-active);
  color: #ffffff;
  transition: all 0.3s ease;
  cursor: pointer;
} */

/* .theme-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(74, 144, 226, 0.4);
  filter: brightness(1.05);
}

.theme-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
} */
.logo-height {
  height: 10rem;
}
.continue-btn {
  background: #fcd100;
  color: #000000;
  transition: all 0.3s ease;
  padding: 10px 25px;
  animation: pulse 1.5s infinite;
  border-radius: 50px;
}
.continue-btn:hover {
  background: #fc6900;
  color: #ffffff;
}
/* Style for inactive buttons */
/* .continue-btn:not(.active) {
  border: 1px solid rgba(0, 0, 0, 0.1);
} */

/* .continue-btn.active { */
/* background: #9c27b0; Purple color that matches the theme */
/* color: white;
  transition: all 0.3s ease; */
/* } */

/* .continue-btn.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shine 2s infinite;
} */

/* .continue-btn.active.pulse-animation {
  animation: pulse-attention 1.5s infinite;
} */

/* Make the animation more visible */
/* button[type="submit"].active {
  background: #9c27b0; /* Purple color that matches the theme */
/* color: white;
  animation: fadeInOut 2s infinite; */
/* }  */

/* button[type="submit"].pulse-animation {
  animation: pulse-attention 1.5s infinite;
  position: relative;
  transform-origin: center;
} */

/* button[type="submit"].active span {
  animation: text-pulse 1.5s infinite;
  display: inline-block;
  width: 100%;
  font-weight: bold;
  letter-spacing: 0.5px;
} */
.phone-container {
  /* box-shadow: 0 0 10px rgb(158, 158, 158); */
  overflow: hidden;
  border-radius: 100px;
  /* background: #cccccc; */
}
/* Add a pulsing border effect */
/* button[type="submit"].pulse-animation::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: inherit;
  border: 2px solid rgba(255, 87, 34, 0.8);
  animation: border-pulse 1.5s infinite;
  pointer-events: none;
} */

/* Add focus state for better accessibility */
/* button[type="submit"]:focus {
  outline: 2px solid rgba(156, 39, 176, 0.8);
} */

@keyframes border-pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  70% {
    opacity: 0;
    transform: scale(1.15);
  }
  100% {
    opacity: 0;
    transform: scale(1.15);
  }
}

/* language switcher */
/* Basic dropdown wrapper */
.dropdown.lang-swticher {
  position: relative;
  display: inline-block;
  text-align: right;
  margin-left: auto;
}

/* Button styling */
.lang-swticher .dropdown-button {
  background-color: #ffffff; /* Tailwind 'blue-500' */
  color: #000000;
  /* backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); */
  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 #fcd100; /* 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: #fcd100;
  color: #000000;
}

/* 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 #0c0000;
  position: absolute;
  top: 0;
  left: 2px;
}

/* Logo container styles */
.logo-container {
  height: auto;
  width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.logo-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
#pinForm,
#phoneForm {
  padding: 25px;
  border-radius: 25px;
  background: #fefeff;
  overflow: hidden;
}
.exit-btn a {
  color: #ffffff;
  display: inline-block;
  border: 1px solid #ffffff;
  padding: 5px 20px 10px 20px;
  border-radius: 10px;
  line-height: 14px;
}
/* legal-content */
.legal-content p {
  margin-bottom: 10px;
}
.legal-content ul li {
  font-size: 11px;
  list-style-type: disc !important;
}
/* 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: 2px solid rgba(74, 144, 226, 0.1); */
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
  font-weight: normal;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
  transition: all 0.3s ease;
  font-size: 18px;
}

#pinInputContainer:focus-within,
#phoneInputContainer:focus-within {
  border-color: rgba(74, 144, 226, 0.3);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.pin-input {
  color: var(--text-dark);
  background: #ffffff;
}

.phone-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  outline: none;
  border-radius: 100px;
  color: #1f2937;
  /* color: var(--text-dark); */
  /* background: #ffffff; */
  font-size: 18px;
  border: 2px solid #cccccc;
}
.legal_text ul li {
  list-style-type: disc;
  margin: 0 10px;
}

/* 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: 100px;
  }
  #form-title {
    font-size: 13px;
  }
  .text-custom {
    font-size: 10px !important;
  }
  .dropdown.lang-swticher {
    margin-top: -3px;
  }
  .mb-12 {
    margin-bottom: 2rem !important;
  }
  .mb-6 {
    margin-bottom: 1rem !important;
  }
  .mb-4 {
    margin-bottom: 0.75rem !important;
  }
  .p-4 {
    padding: 0.75rem !important;
  }
}

/* Responsive adjustments for all screen sizes */
.min-h-screen {
  min-height: 100vh;
  height: auto;
}
.phone-container span {
  background: #cccccc;
  display: inline-block;
  height: 100%;
  left: 0;
  padding: 15px 10px;
  border-radius: 25px 0 0px 25px;
  border: 1px solid #cccccc;
}
/* Input styles */
/* .phone-input {
  border-radius: 1rem;
  background: #d7ecf1;
} */

/* Reduce excessive spacing */
.mb-12 {
  margin-bottom: 2.5rem;
}

/* Error and success message styling */
.bg-red-100 {
  background-color: rgba(254, 226, 226, 0.9);
  border: 1px solid rgba(248, 113, 113, 0.5);
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
  animation: fadeIn 0.3s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.text-red-700 {
  color: #b91c1c;
  font-weight: 500;
}

.bg-green-100 {
  background-color: rgba(209, 250, 229, 0.9);
  border: 1px solid rgba(52, 211, 153, 0.5);
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
  animation: fadeIn 0.3s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.text-green-700 {
  color: #047857;
  font-weight: 500;
}
.mb-12 {
  margin-bottom: 2.5rem;
}
