@font-face {
    font-family: 'Rostack';
    src: url('../fonts/Rostack.woff') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'Thedus Condensed Light';
    src: url('../fonts/FontsFree-Net-Thedus-CondensedLight.woff') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Asterone';
    src: url('../fonts/Asterone DEMO.woff') format('truetype');
    font-display: swap;
}
a {
  text-decoration: none;
  color: #007bff;
}
*{
    margin: 0;  
}
/*-----------------------------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
/* ----------------------------------  🧠 header 🧠  ---------------------------*/                     
  
  body {
    font-family: sans-serif;
    background: linear-gradient(to top, #191c1f, #111214) no-repeat;
    height: auto;
    background-color: #000000;
  }
  main{
    z-index: 1;
    background-image: url(../image/غلاف-صفحة.png);
    background-position: center;
    background-size: 0.3vw;
  }

  header{
 
    background-position: center;
    background-size: 0.3vw;
    z-index: 2;
    transition: background-color 0.3s ease;
    z-index: 1000;
  }
/*----------------------------- Register - Responsive Version -------------------------------*/

.Register {
  background-image: url(../image/غلاف-صفحة.png), linear-gradient(to top, #023055, #111214);
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.Register-all {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  background-image: url(../image/v-01.png), linear-gradient(to top, #023055, #111214);
  background-position: -16vw 0vw;
  background-size: 80vw;
  justify-content: flex-end;
}

.Register-container {
  background-color: #222222; 
  width: 50%;
  padding: clamp(1.5rem, 3vw, 4rem);
  overflow-y: auto;
  height: 100vh; 
  position: relative;
  border-radius: 2vw 0 0 2vw;
}

.Register-container::-webkit-scrollbar {
  width: 8px;
}

.Register-container::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.Register-container::-webkit-scrollbar-thumb {
  background: #007bff;
  border-radius: 4px;
}

.Register-img {
  width: 45%;
  min-height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.Register-container form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Header */
.head-page-Up {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  margin-bottom: clamp(2rem, 4vw, 5vw);
}

.icon-logo {
  height: clamp(40px, 5vw, 80px);
  width: clamp(40px, 5vw, 80px);
  background-image: url(../image/icon.png);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.head-page-Up h1 {
  color: white;
  font-weight: 100;
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin: 0;
}

.head-page-Up h1 a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s;
}

.head-page-Up h1 a:hover {
  color: #48a0ff;
}

.text-Sign-In {
  color: white;
  font-weight: 100;
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: clamp(1rem, 2vw, 2rem);
  text-align: left;
  padding-left: 0;
}

.form-Sign-Up {
  width: 100%;
  height: auto;
  background-color: transparent !important;
}

/* Form Rows */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.8rem, 1.5vw, 1.5rem);
  margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
}

.form-group {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Inputs */
.inputemail, .inputfullname, .inputusername, .inputphone,
.selectgender, .inputbirthdate, .selectcountry, .inputPassword {
  background-color: #ffffff1e;
  border: 2px solid #ffffff;
  border-radius: clamp(6px, 0.5vw, 8px);
  padding: 0 0.5vw;
  font-size: 2vh;
  width: 100%;
  color: white;
  font-weight: 100;
  transition: all 0.3s ease;
  box-sizing: border-box;
  height: 2.3vw;
  margin-bottom: 0;
}

.inputemail:focus, .inputfullname:focus, .inputusername:focus, 
.inputphone:focus, .selectgender:focus, .inputbirthdate:focus, 
.selectcountry:focus, .inputPassword:focus {
  border-color: #007bff;
  outline: none;
  background-color: #ffffff2e;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.selectcountry option, .selectgender option {
  background-color: #141414;
  padding: 0;
  color: white;
}

/* Password Strength */
.password-strength-wrapper {
  width: 100%;
  margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
}

.password-strength {
  width: 100% !important;
  height: 6px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  position: relative !important;
  display: block !important;
  margin: clamp(0.8rem, 1vw, 1rem) 0 !important;
}

.strength-bar {
  height: 100% !important;
  width: 0% !important;
  transition: width 0.5s ease, background-color 0.5s ease !important;
  border-radius: 4px !important;
  display: block !important;
}

.strength-bar.strength-weak {
  width: 33% !important;
  background: linear-gradient(90deg, #ff4444, #ff6666) !important;
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.6) !important;
}

.strength-bar.strength-medium {
  width: 66% !important;
  background: linear-gradient(90deg, #ffaa00, #ffcc00) !important;
  box-shadow: 0 0 15px rgba(255, 170, 0, 0.6) !important;
}

.strength-bar.strength-strong {
  width: 100% !important;
  background: linear-gradient(90deg, #00ff00, #00cc00) !important;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.6) !important;
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: white;
  font-size: clamp(0.85rem, 1vw, 1.1rem);
  cursor: pointer;
  font-family: 'Rostack', sans-serif;
  margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  cursor: pointer;
  accent-color: #007bff;
  margin: 0;
  flex-shrink: 0;
}

.text-policy {
  color: white;
  font-size: 3vh;
  font-weight: 100;
  line-height: 1.5;
  margin: 0;
}

.text-policy a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 400;
}

.text-policy a:hover {
  color: #48a0ff;
}

/* Submit Button */
.submit {
  background-color: #007bff38;
  border-radius: clamp(6px, 0.5vw, 8px);
  border: 2px solid #2A7DD8;
  padding: clamp(0.7rem, 1vw, 1rem);
  width: 100%;
  max-width: clamp(120px, 12vw, 180px);
  margin: 0 auto;
  transition: all 0.3s ease-in-out;
  color: white;
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  font-weight: 500;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit:hover {
  background-color: #007bff8a;
  border-color: #48a0ff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.submit:active {
  transform: translateY(0);
}

/* Error Messages */
.error-message, .success-message, .form-errors {
  padding: clamp(0.8rem, 1vw, 1.2rem);
  border-radius: 8px;
  font-size: clamp(0.85rem, 0.95vw, 1rem);
  margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-message {
  color: #ff4d4d;
  background-color: rgba(70, 2, 2, 0.5);
  border: 1px solid #ff4d4d;
  padding: 0.5rem;
  border-radius: 4px;
}

.success-message {
  background-color: #024605;
  border: 1px solid #4dff65;
  color: #ffffff;
}

.form-errors {
  background-color: #460202;
  border: 1px solid #ff4d4d;
  color: #ff6b6b;
}

/* ===============================================
   MEDIA QUERIES - Responsive Design
   =============================================== */

/* Tablets - Large (1024px - 1280px) */
@media screen and (max-width: 1280px) {
  .Register-all {
    background-position: -22vw 3vw;
    background-size: 90vw;
  }
  
  .Register-container {
    width: 55%;
    padding: 2rem;
  }
  
  .Register-img {
    width: 40%;
  }
}

/* Tablets - Medium (768px - 1024px) */
@media screen and (max-width: 1024px) {
  .Register-all {
    background-position: center;
    background-size: cover;
    background-position: -20vw 15vw;
    background-size: 80vw;
  }
  
  .Register-container {
    width: 60%;
    border-radius: 1.5vw 0 0 1.5vw;
  }
  
  .Register-img {
    width: 35%;
  }
  
  .form-row {
    gap: 1rem;
  }
}

/* Tablets - Small & Mobile Landscape (600px - 768px) */
@media screen and (max-width: 768px) {
  .Register {
    background-position: center;
    padding: 0;
  }
  
  .Register-all {
    flex-direction: column;
    background-image: url(../image/غلاف-صفحة.png), linear-gradient(to top, #023055, #111214);
    background-position: center;
    background-size: cover;
  }
  
  .Register-img {
    display: none; /* إخفاء الصورة الجانبية */
  }
  
  .Register-container {
    width: 100%;
    height: auto;
    min-height: 100vh;
    border-radius: 0;
    padding: 2rem 1.5rem;
  }
  
  .head-page-Up {
    margin-bottom: 2rem;
  }
  
  .text-Sign-In {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr; /* صف واحد */
    gap: 0.8rem;
  }
  
  .submit {
    max-width: 100%;
    padding: 0.9rem;
  }
}

/* Mobile - Medium (480px - 600px) */
@media screen and (max-width: 600px) {
  .Register-container {
    padding: 1.5rem 1rem;
  }
  
  .head-page-Up {
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .icon-logo {
    height: 50px;
    width: 50px;
  }
  
  .text-Sign-In {
    font-size: 1.8rem;
  }
  
  .inputemail, .inputfullname, .inputusername, .inputphone,
  .selectgender, .inputbirthdate, .selectcountry, .inputPassword {
    height: 45px;
    font-size: 0.95rem;
    padding: 0.7rem;
  }
  
  .checkbox-label {
    font-size: 0.9rem;
    align-items: flex-start;
  }
  
  .checkbox-label input[type="checkbox"] {
    margin-top: 3px;
  }
  
  .submit {
    font-size: 1.1rem;
    padding: 0.85rem;
  }
}

/* Mobile - Small (320px - 480px) */
@media screen and (max-width: 480px) {
  .Register-container {
    padding: 1.2rem 0.8rem;
  }
  
  .head-page-Up {
    margin-bottom: 1rem;
  }
  
  .icon-logo {
    height: 40px;
    width: 40px;
  }
  
  .head-page-Up h1 {
    font-size: 0.95rem;
  }
  
  .text-Sign-In {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .form-row {
    gap: 0.7rem;
    margin-bottom: 0.7rem;
  }
  
  .inputemail, .inputfullname, .inputusername, .inputphone,
  .selectgender, .inputbirthdate, .selectcountry, .inputPassword {
    height: 42px;
    font-size: 0.9rem;
    padding: 0.6rem;
    border-width: 1.5px;
  }
  
  .password-strength {
    height: 5px !important;
    margin: 0.6rem 0 !important;
  }
  
  .checkbox-label {
    font-size: 0.85rem;
  }
  
  .checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
  }
  
  .text-policy {
    font-size: 0.85rem;
  }
  
  .submit {
    font-size: 1rem;
    padding: 0.8rem;
    max-width: 100%;
  }
  
  .error-message, .success-message, .form-errors {
    font-size: 0.85rem;
    padding: 0.7rem;
  }
}

/* Mobile - Extra Small (< 320px) */
@media screen and (max-width: 320px) {
  .Register-container {
    padding: 1rem 0.6rem;
  }
  
  .text-Sign-In {
    font-size: 1.3rem;
  }
  
  .inputemail, .inputfullname, .inputusername, .inputphone,
  .selectgender, .inputbirthdate, .selectcountry, .inputPassword {
    height: 38px;
    font-size: 0.85rem;
    padding: 0.5rem;
  }
  
  .checkbox-label {
    font-size: 0.8rem;
  }
  
  .submit {
    font-size: 0.95rem;
    padding: 0.75rem;
  }
}

/* Landscape Orientation للهواتف */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .Register-container {
    height: auto;
    min-height: 100vh;
    padding: 1rem;
  }
  
  .head-page-Up {
    margin-bottom: 0.8rem;
  }
  
  .text-Sign-In {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }
  
  .form-row {
    margin-bottom: 0.8rem;
    gap: 0.8rem;
  }
  
  .inputemail, .inputfullname, .inputusername, .inputphone,
  .selectgender, .inputbirthdate, .selectcountry, .inputPassword {
    height: 38px;
  }
  
  .password-strength {
    margin: 0.5rem 0 !important;
  }
  
  .checkbox-label {
    margin-bottom: 0.8rem;
  }
  
  .submit {
    padding: 0.7rem;
  }
}

/*----------------------------- End Register - Responsive -------------------------------*/