@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200;500;700;1000&display=swap");

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
body {
  font-family: cairo, sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
}
.container {
  margin: 50px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  gap: 50px;
}

.image-section {
  flex: 1;
  max-width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-section img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.signup-container {
  width: 45%;
  background-color: #eee;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: auto;
}

.all-inp {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

h2 {
  text-align: center;
  font-size: 30px;
  background: #1d8dd92e;
  border-radius: 4px;
  padding: 10px;
}

.input-group {
  position: relative;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
  width: 100%;
  height: 40px;
  padding: 0 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
}

input:focus {
  outline: none;
  border-color: #1d8dd9;
  box-shadow: 0 0 5px #1d8dd9;
}

button[type="submit"] {
  background-color: #1d8dd9;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  width: 100%;
  margin-top: 15px;
}

.error {
  color: red;
  font-size: 14px;
}

.type {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}
.seller,
.buyer {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
input[type="radio"] {
  display: none;
}

input[type="radio"]:checked + .custom-radio {
  background-color: #1d8dd9d4;
}

.custom-radio {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 35%;
  border: 2px solid #0000005e;
  cursor: pointer;
}

.extra {
  margin: 15px 0 0;
  text-align: center;
}

.extra a {
  color: #4f3c00;
  text-decoration: none;
}
.header {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  background-color: #eee;
  padding: 15px 0;
  color: #000;
  font-family: cairo;
}
.logo {
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo span {
  display: flex;
  color: #000;
  font-family: Arial, sans-serif;
}
.dark-mode .logo span {
  color: #fff;
}
.lang {
  position: relative;
}
.dropbtn {
  background-color: transparent;
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 16px;
  outline: none;
}
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 50px;
  background-color: #fff;
  color: #000;
  min-width: 160px;
  z-index: 1;
  border-radius: 5px;
}
.dark-mode .dropdown-content {
  background-color: #212121;
}
.dropdown-content a {
  color: #000;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-family: cairo, sans-serif;
}

.dark-mode .dropdown-content a {
  color: #fff;
}
.dropdown-content a:hover {
  background-color: #1d8dd9;
  color: #fff;
}
i.fa.fa-globe {
  font-size: 20px;
  color: #000;
}
.dark-mode i.fa.fa-globe {
  color: #fff;
}
.right_nav {
  display: flex;
  align-items: center;
  gap: 15px;
}
.dark-mode-toggle i {
  font-size: 20px;
  cursor: pointer;
}
.logo img {
  width: 60px;
}
body.dark-mode {
  background: #000;
}
.dark-mode .header,
.dark-mode .signup-container {
  background-color: #212121;
  color: #fff;
}
.dark-mode input[type="radio"] + .custom-radio {
  border: 2px solid #ffffff8f;
}
.dark-mode input[type="text"],
.dark-mode input[type="email"],
.dark-mode input[type="tel"],
.dark-mode input[type="password"] {
  background-color: #212121;
  color: #fff;
  border: 1px solid #494949;
}
.dark-mode .extra a {
  color: #fff;
  opacity: 0.5;
}
@media (max-width: 782px) {
  .container {
    flex-direction: column-reverse;
  }
  .image-section {
    display: none;
  }
  .signup-container {
    width: 95%;
  }
  .logo {
    gap: 5px !important;
  }
}
