
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}




/* আপনার কাস্টম নাম সেট করা */
@font-face {
  font-family: 'RelaydiaFont';
  src: local('Albert Sans');
  unicode-range: U+0000-00FF;
}

@font-face {
  font-family: 'RelaydiaFont';
  src: local('Noto Serif Bengali');
  unicode-range: U+0980-09FF;
}







body {
  font-family: 'RelaydiaFont', 'Albert Sans', 'Noto Serif Bengali', serif;
  color: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  min-height: 100vh;

}

.auth-top {
    
  display: block;
  margin-top: 1rem;
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.auth-box {
  width: 100%;
  max-width: 450px;
  padding: 1rem;
  border-radius: 12px;
}

.auth-box h3 {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: .3rem;
  letter-spacing: 0.02em;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.name-row {
  display: flex;
  gap: 1rem;
}

.name-row input {
  flex: 1;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: border 0.2s;
  font-family: 'RelaydiaFont', 'Albert Sans', 'Noto Serif Bengali', serif;
}

input:focus {
  border-color: #000;
  outline: none;
}

.auth-box     
.btn-upload,
  button {
  width: 100%;      
  background-color: #000;
  color: #fff;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 1rem;
  font-weight: normal;
  font-family: 'RelaydiaFont', 'Albert Sans', 'Noto Serif Bengali', serif;
}

button:hover {
  background: #222;
}

a {
  display: block;
  text-align: center;
  margin-top: 1rem;
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
}

a:hover {
  color: #000;
}

.error-message {
  text-align: center;
  margin: 1rem;
}


.auth-logo {
  margin-right: auto;
  margin-left: auto;
  align-content: center;
  display: block;
  margin-bottom: 1rem;
}


.typing-container {
  align-items: center;
  font-weight: bold;
  text-align: center;
  font-size: 1.5rem;
  padding-top: .2rem;
  padding-bottom: .3rem;
}



.typing-text::after {
  content: '|';
  display: inline-block;
  animation: blink 0.7s infinite;
}





.phone-wrapper {
  position: relative;
}

.phone-wrapper::before {
  content: attr(data-code);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  font-size: 14px;
}

.phone-wrapper input {
  padding-left: 50px;
}






.flag-select {
      position: relative;
      font-size: 1rem;
      padding: 0.5rem 1rem;
      border: 1.5px solid #ddd;
      border-radius: 8px;
      appearance: none;
      background-color: #fff;
      color: transparent;
      text-shadow: 0 0 0 #666;
    }

    .flag-select::before {
      content: var(--selected-text, '🌐 +00');
      position: absolute;
      left: 1rem;
      top: 50%;
      transform: translateY(-50%);
      color: #444;
      pointer-events: none;
      font-weight: 500;
    }

    .flag-select option {
      color: #222;
    }







    .success-message {
      color: #34a853;
      font-size: 13px;
      margin-top: .5rem;
    }



    #resend-link {
      color: #000;
      text-decoration: underline;
      cursor: pointer;
    }

    #resend-link:hover {
      color: #555;
    }







#country-code {
  width: 120px;
  padding: 5px;
  font-size: 14px;
}

/* Trick to hide the full text in the selected item */
#country-code option {
  font-size: 14px;
}

#country-code {
  font-family: inherit;
}

/* This part visually hides the country name after selection */
#country-code option {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* OPTIONAL: if you want to hide text on selection only, use this JavaScript method */




/* Phone container flex */
#phone-container {
  display: flex; /* flex container */
  gap: 0.5rem; /* spacing between country code and input */
  align-items: center;
}

/* Country code select */
#country-code {
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  cursor: pointer;
  max-width: 120px;
  appearance: none; /* remove default arrow on some browsers */
  transition: border 0.2s;
  width: 5rem;
}

#country-code:focus {
  border-color: #000;
  outline: none;
}

/* Phone input */
#phone-input {
  flex-grow: 1;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  transition: border 0.2s;
  width: 100%;
}

#phone-input:focus {
  border-color: #000;
  outline: none;
}






    .info {
      font-size: 0.95em;
      color: #333;
      margin: 12px 0 18px;
      text-align: center;
    }
    .change-contact {
      color: #007bff;
      cursor: pointer;
      font-size: 0.9em;
      margin-left: 8px;
      user-select: none;
      text-decoration: underline;
    }
    #change-form {
      display: none;
      margin-top: 15px;
    }
    #change-form input[type="email"] {
      width: 100%;
      padding: 8px 10px;
      margin-bottom: 8px;
      font-size: 1rem;
      border: 1px solid #ccc;
      border-radius: 6px;
      box-sizing: border-box;
    }
    .otp-inputs {
      display: flex;
      gap: 10px;
      justify-content: center;
    }
    .otp-inputs input {
      width: 50px;
      height: 60px;
      font-size: 2rem;
      text-align: center;
      border-radius: 8px;
      outline: none;
      transition: border-color 0.2s;
    }
    .otp-inputs input:focus {
      border-color: black;
    }











#resend-container {
  margin-top: 20px;
  font-size: 0.95em;
  color: #555;
  margin-bottom: 1rem;
  text-align: center;
}
    #resend-countdown-text {
      display: inline-block;
    }

.error-message {
  color: red;
}
    .success-message {
      color: green;
    }





.select {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  appearance: none;
  transition: border-color 0.2s ease;
  cursor: pointer;
  color: #222;
}

.select:focus {
  border-color: #000;
  outline: none;
}

.select option {
  padding: 0.5rem;
  font-size: 1rem;
}



  /* Small styling improvements */
    .dob-fields select,
    .founding-fields select {
      padding: 0.7rem 1rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: white;
  width: 100%;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
  text-align: center;
}
    .dob-fields select:focus,
    .founding-fields select:focus {
      border-color: #000;
      outline: none;
    }
    /* Align day/month/year horizontally with some gap */
    .dob-fields,
    .founding-fields {
      display: flex;
      gap: 0.5rem;
      margin-top: 0.25rem;
    }
 
 
 
  /* Username input right corner indicator */
  #username {
    padding-right: 25px;
  }
  #username.available {
    border-color: green;
    background-image: url('data:image/svg+xml;utf8,<svg fill="green" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><circle cx="4" cy="4" r="4"/></svg>');
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 16px 16px;
  }
  #username.unavailable {
    border-color: red;
    background-image: url('data:image/svg+xml;utf8,<svg fill="red" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><circle cx="4" cy="4" r="4"/></svg>');
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 16px 16px;
  }
  #username.loading {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" width="16" height="16" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" stroke="gray" stroke-width="10" fill="none" stroke-dasharray="188.4" stroke-dashoffset="0"><animateTransform attributeName="transform" type="rotate" from="0 50 50" to="360 50 50" dur="1s" repeatCount="indefinite"/></circle></svg>');
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 16px 16px;
  }

  /* Suggestion chips */
  #username-suggestions span.suggestion-item {
    cursor: pointer;
    display: inline-block;
    margin: .4rem;
    padding: 3px 8px;
    background: #eee;
    border-radius: 12px;
    font-size: 0.9em;
    user-select: none;
    transition: background-color 0.2s ease;
  }
  #username-suggestions span.suggestion-item:hover {
    background-color: #ccc;
  }

  #username-status {
    font-size: 0.85em;
    margin-top: 4px;
  }




form label {
  display: block;      /* Make label take full width */
  margin-bottom: 0.5rem;  /* Adjust space below label */
}






    .profile-pic-wrapper {
      position: relative;
      width: 140px;
      height: 140px;
      margin: 1.5rem auto;
    }

.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3rem;
  
  /* ডিফল্ট বর্ডার: একটু হালকা গ্রে কালার */
  border: 3px solid #ddd;
  
  background-color: #f3f3f3;
  cursor: pointer;
  
  /* ট্রানজিশন: এটি বর্ডার কালার এবং উইডথ পরিবর্তনকে স্মুথ করবে */
  transition: border-color 0.3s ease, border-width 0.1s ease;
}

.profile-pic:hover {
  /* হোভার করলে বর্ডারের কালার কালো হবে */
  border-color: #111;
  
  /* (ঐচ্ছিক) চাইলে বর্ডারটা ১ পিক্সেল মোটা করতে পারেন জোর দেওয়ার জন্য */
  /* border-width: 4px; */
}
    

    .camera-icon {
      position: absolute;
      bottom: 0;
      right: 0;
      background: #000;
      color: #fff;
      border-radius: .6rem;
      padding: 6px;
      cursor: pointer;
      font-size: 0.9rem;
      line-height: 1;
      width: 30px;
      height: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0 0 2px #fff;
    }



.agreement-text {
  font-size: 14px;
  color: #555;
  text-align: center;
  margin-top: 1rem;
}

  .agreement-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 4px;
  }

.agreement-links a {
  color: #555;
  text-decoration: underline;
  margin-top: .2rem;
}



    input[type="file"] {
      display: none;
    }




/* Responsive behavior */
@media (max-width: 500px) {

  
  
 .auth-box {
  width: 100%;
  max-width: 400px;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: auto;
} 
  
  
  
  
  
  
}














    .caption {
      font-size: 0.8rem;
      color: #666;
      margin-top: 0.2rem;
      margin-bottom: 0.8rem;
    }

    textarea#bio,
    textarea#about {
      width: 100%;
      font-family: inherit;
      font-size: 1rem;
      line-height: 1.4;
      padding: 0.5rem 0.75rem;
      border: 1px solid #ccc;
      border-radius: 8px;
      background-color: #fff;
      color: #333;
      transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
      resize: none;
      min-height: 80px;
    }

    textarea#bio:focus,
    textarea#about:focus {
      outline: none;
      border-color: #000;
      box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    }

    .char-count {
      font-size: 0.75rem;
      color: #666;
      margin-top: 0.25rem;
      text-align: right;
    }

    .select2-container--default .select2-selection--single {
      height: fit-content;
      padding: 8px;
      background-color: #fff;
      border: 1px solid #ddd;
      border-radius: 8px;
      position: relative;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
      height: 42px;
      position: absolute;
      top: 1px;
      right: 12px;
      width: 20px;
    }

    .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
      background-color: #ddd;
      color: #000;
    }

    /* Style for username input */
input#username {
  width: 100%;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}



.form-group {
    
    padding-bottom: .7rem;
}








.select2-container--default .select2-selection--single .select2-selection__clear {
  cursor: pointer;
  float: right;
  font-weight: bold;
  height: 26px;
  margin-right: 20px;
  padding-right: 0px;
  display: none;
}
