/* Styles for Khalifa+ website */

/* Base transitions */
* {
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  font-weight: 500;
}


body {
  background: #0ea5e9;
  min-height: 100vh;
  position: relative;
}

/* Ensure content appears above the pattern */
body > * {
  position: relative;
  z-index: 2;
}

@keyframes pulseBtn {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulseBtn 2s infinite;
}
.logo-container {
  margin: 0.6rem 0;
  max-width: 300px;
  text-align: center;
}

.logo-container img {
  width: 100%;
  margin: auto;
  /* filter: drop-shadow(0.1rem 0.2rem 0.1rem #000); */
}
.legal-text {
  position: relative;
  font-weight: 500;
}
.success-msg {
  color: #039201;
  font-weight: bold;
}
.footer {
  position: relative;
  text-align: center;
}
.footer a {
  color: #d5d4d4ff;
  opacity: 0.8;
}
.legal-text p,
.legal-text ul,
.legal-text li {
  color: #000000;
  font-weight: 500;
}
/* Device icons hover effects */
.device-icon {
  transition: transform 0.3s ease, filter 0.3s ease;
}
.white-box {
  -webkit-border-radius: 40px 0 40px 0;
  -moz-border-radius: 40px 0 40px 0;
  border-radius: 40px 0 40px 0;
}
.lang-switcher {
  -webkit-border-radius: 20px 0 20px 0;
  -moz-border-radius: 20px 0 20px 0;
  border-radius: 20px 0 20px 0;
  border: none;
  transition: all 1s ease;
}
.lang-switcher:hover {
  background-color: rgb(167, 211, 247);
  -webkit-border-radius: 10px 0 10px 0;
  -moz-border-radius: 10px 0 10px 0;
  border-radius: 10px 0 10px 0;
}
.img-wrapper {
  text-align: center;
}
.error-box {
  color: #f6051d;
  font-weight: 600;
  font-size: 14px;
}
.theme-icon {
  color: #ffffff;
}
#phoneForm #form-title {
  font-size: 16px;
  color: #666;
  font-weight: 600;
}
.device-icon:hover {
  transform: translateY(-5px) !important;
  filter: brightness(1.2);
}

/* Form focus effects */
#phoneInputContainer:focus-within,
#pinInputContainer:focus-within {
  border-color: #000000 !important;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* Button hover effects */
button[type="submit"] {
  transition: all 0.3s ease;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(99, 102, 241, 0.3);
}

button[type="submit"]:active {
  transform: translateY(0);
}

.red-button {
  background: #f8293d;
}
.red-button:hover {
  background: #f6051d;
}

/* Page Loader Styles */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 11, 24, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
  text-align: center;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: loader-spin 1s linear infinite;
  margin: 0 auto 15px;
}

.loader-text {
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
}

@keyframes loader-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Tailwind utility classes fallback */
.p-2 {
  padding: 0.5rem; /* 8px */
}

.p-3 {
  padding: 0.75rem; /* 12px */
}

.p-4 {
  padding: 1rem; /* 16px */
}

.p-5 {
  padding: 1.25rem; /* 20px */
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}
