/* Import fonts */
@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap");

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
}

/* Arabic text styles */
.arabic {
  font-family: "Tajawal", Arial, sans-serif;
  direction: rtl;
}

/* Container and background styles */
.container {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: white;
}

.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      to bottom,
      rgba(3, 123, 198, 0.7),
      /* Changed to Copima blue */ rgba(3, 123, 198, 0.9)
        /* Changed to Copima blue */
    ),
    url("https://plus.unsplash.com/premium_photo-1664304163284-9c844b50b439?q=80&w=1738&auto=format&fit=crop")
      center/cover;
}

/* Content styles */
.content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Changed from center to flex-end */
  align-items: center;
  padding: 40px 24px;
  color: white;
  text-align: center;
  z-index: 2;
}

.logo {
  width: 180px;
  margin-bottom: 30px;
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
}

h1 {
  font-size: 34px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.2;
}

p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  max-width: 600px;
}

/* Button styles */
.submit-button,
#verifyLocation,
#retryButton {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 20px 40px;
  border-radius: 14px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 20px;
  width: 100%;
}

.submit-button:hover,
#verifyLocation:hover,
#retryButton:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.submit-button span {
  text-align: center;
}

/* Message styles */
.message {
  background-color: rgba(255, 68, 68, 0.1);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  margin: 20px 0;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Security note styles */
.security-note {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Home indicator styles */
.home-indicator {
  width: 134px;
  height: 5px;
  background-color: #ffffff;
  border-radius: 100px;
  margin: 8px auto;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.hidden {
  display: none;
}

/* Utility class for RTL block elements */
.d-block {
  display: block;
}

/* Responsive styles */
@media (max-width: 768px) {
  .logo {
    width: 220px;
  }

  h1 {
    font-size: 34px;
  }

  p {
    font-size: 20px;
  }
}

/* Label container styles */
.label-container {
  margin-bottom: 8px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.label-container .form-label {
  margin-bottom: 0;
}

.label-container .form-label.arabic {
  order: 1; /* Moves Arabic label to the right */
}

.label-container .form-label:not(.arabic) {
  order: 0; /* Keeps French label to the left */
}
.error-background {
  background-color: red;
  color: white;
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px;
}
