@import "../../styles/base.css";

:root {
  --gradient: radial-gradient(var(--color-primary) 10%, var(--color-secondary));
  --light-bg: #f6f5f7;
  --text: #333;
  --border: #ddd;
}

.signin-signup {
  background-image: url(../../theme1404Assets/images/texture.webp);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
  direction: rtl;
}

.signin-signup__welcome-text .signin-signup__welcome-title {
  margin-top: 1rem;
}

.signin-signup__signin-methods {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.signin-signup-input {
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 14px;
}

.signin-signup__email-input,
.signin-signup__pass-input {
  padding: 1rem 1.5rem;
  border-radius: 50px;
  font-size: 14px;
}
.signin-signup__captcha {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 0.5rem;
}
.signin-signup__captcha-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0.5rem;
}

.signin-signup__captcha-image img {
  max-height: 5rem;
}
.signin-signup__captcha-input {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 14px;
}

.signin-signup__remmeber-me-forgor-pass {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 1rem;
}

.signin-signup__remember-me {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

.signin-signup__remember-me-input {
  display: inline-block;
  max-width: 25px;
}

.signin-signup__remember-me-label,
.signin-signup__forgot-pass {
  font-size: 1.2rem;
}

.signin-signup__forgot-pass {
  font-size: 1.2rem;
  color: #333;
}

.signin-signup__remmeber-pass {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

@media screen and (min-width: 768px) {
  .signin-signup__signin-methods {
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }
}

.signin-signup input {
  background-color: #eee;
  margin: 0.5rem 0;
  width: 98%;
  border: 0;
  outline: 0;
}

.signin-signup input:focus {
  outline: 2px solid var(--color-accent);
}

.signin-signup .signin-signup__remember-me input:focus {
  outline: 0;
}

button.ghost {
  background-color: transparent;
  border: 2px solid #fff;
}

.signin-signup__welcome-signin,
.signin-signup__welcome-signup {
  margin-top: 2rem;
}

/* -----------------------------------
         signin-signup__container (MOBILE FIRST)
      ----------------------------------- */
.signin-signup__container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  position: relative;
}

.tab-header {
  display: flex;
  justify-content: space-between;
  /* border-bottom: 1px solid var(--border); */
}

.tab-btn {
  flex: 1;
  padding: 0.8rem;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  background: var(--color-primary);
  transition: all 0.5s;
}

.tab-btn.active {
  background: var(--color-third);
  color: #fff;
}

.form-signin-signup__container {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.form-signin-signup__container.active {
  display: flex;
}

/* -----------------------------------
         TABLET & DESKTOP (SLIDER LAYOUT)
      ----------------------------------- */
@media (min-width: 768px) {
  body {
    padding: 0;
  }

  .signin-signup__container {
    max-width: 800px;
    height: 480px;
  }

  .tab-header {
    display: none;
  }

  .form-signin-signup__container {
    display: flex;
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    transition: all 0.6s ease-in-out;
    background: #fff;
  }

  .sign-in-signin-signup__container {
    right: 0;
    z-index: 2;
  }

  .sign-up-signin-signup__container {
    right: 0;
    opacity: 0;
    z-index: 1;
  }

  .signin-signup__container.right-panel-active
    .sign-in-signin-signup__container {
    transform: translateX(-100%);
  }

  .signin-signup__container.right-panel-active
    .sign-up-signin-signup__container {
    transform: translateX(-100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
  }

  @keyframes show {
    0%,
    49.99% {
      opacity: 0;
      z-index: 1;
    }
    50%,
    100% {
      opacity: 1;
      z-index: 5;
    }
  }

  .overlay-signin-signup__container {
    position: absolute;
    top: 0;
    right: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
  }

  .signin-signup__container.right-panel-active
    .overlay-signin-signup__container {
    transform: translateX(100%);
  }

  .overlay {
    background: var(--gradient);
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    position: relative;
    right: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
    display: flex;
  }

  .signin-signup__container.right-panel-active .overlay {
    transform: translateX(-50%);
  }

  .overlay-panel {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    width: 50%;
    height: 100%;
  }

  .overlay-right {
    left: 0;
  }

  .overlay-left {
    transform: translateX(20%);
  }

  .signin-signup__container.right-panel-active .overlay-left {
    transform: translateX(0);
  }

  .nnn {
    display: none;
  }
}

@media (max-width: 767px) {
  .overlay-signin-signup__container {
    display: none;
  }
}

/* ----------------------------------- */
.custom-file {
  display: flex;
  justify-content: center;
  flex-direction: column; /* put label and span in a vertical layout */
  align-items: center; /* center span horizontally */
  width: 100%;
  direction: rtl;
  font-family: inherit;
  margin-top: 1rem;
}

.custom-file input[type="file"] {
  display: none; /* hide native file input */
}

.custom-file label {
  background-color: var(--color-accent);
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: center;
  width: 100%; /* take full available width */
  box-sizing: border-box;
  border-radius: 50px;
}

.custom-file label:hover {
  background-color: #ae6833;
}

#file-name {
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.6rem;
  text-align: center; /* ensure text stays centered */
}

#file-name {
  transition: color 0.2s ease, opacity 0.2s ease;
}
/* ------------------------------ */
/* Step 1: signin-signup__container setup */
.custom-select {
  position: relative;
  width: 100%;
  margin: 0.5rem 0;
}

/* Hide the native select */
.custom-select select {
  display: none;
}

/* Step 2: The visible selected element */
.select-selected {
  background-color: #eee;
  color: #777;
  padding: 8px 16px;
  cursor: pointer;
  position: relative;
  border-radius: 50px;
  direction: rtl;
  text-align: right;
}

/* Step 3: Custom arrow styling */
.select-selected::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 1rem; /* ← adds 1rem space from edge */
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: #000 transparent transparent transparent;
}

/* Rotate arrow when active */
.select-selected.select-arrow-active::after {
  border-color: transparent transparent #000 transparent;
  top: 7px;
}

/* Step 4: Dropdown list signin-signup__container */
.select-items {
  color: #777;
  position: absolute;
  background-color: #eee;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  border-radius: 4px;
}

/* Each option */
.select-items div {
  padding: 8px 16px;
  cursor: pointer;
  text-align: right;
}

.select-items div:hover,
.same-as-selected {
  background-color: var(--color-accent);
}

/* Hide dropdown when closed */
.select-hide {
  display: none;
}

/* -------- */

.signin-signup textarea {
  width: 98%;
  margin-top: 0.5rem;
  border-radius: 25px;
  background-color: #eee;
  border: 0;
}

.signin-signup textarea:focus {
  outline: 2px solid var(--color-accent);
}

.birthdate-picker {
  direction: rtl;
  text-align: right;
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 50px;
}

/* -----------signup-form */
.signin-signup__signup-form {
  overflow: hidden;
}
@media screen and (min-width: 768px) {
  .signin-signup__signup-form {
    overflow-x: hidden;
    overflow-y: scroll;
    padding-left: 2.5rem;
  }

  /* width */
  ::-webkit-scrollbar {
    width: 7px;
  }

  /* Track */
  ::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
  }

  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 10px;
  }

  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
    cursor: pointer;
  }
}

.overlay-signin-signup__welcome-title {
  color: #ffff;
  /* font-size: ; */
}

.overlay-signin-signup__welcome-title span {
  color: var(--color-accent);
}

.overlay-signin-signup__welcome-detail {
  color: #ffff;
  margin-top: 1rem;
}

/* logo */
.signin-signup__logo-right {
  max-width: 150px;
  position: relative;
  left: 50%;
  bottom: 50%;
  transform: translate(-120%, 340%);
}

/* logo */
.signin-signup__logo-left {
  max-width: 150px;
  position: relative;
  left: 50%;
  bottom: 50%;
  transform: translate(-120%, 340%);
}

.overlay-signin-signup__welcome-title,
.overlay-signin-signup__welcome-detail {
  font-family: negare;
}

.overlay-signin-signup__welcome-title {
  font-size: 6rem;
}

.overlay-signin-signup__welcome-detail {
  margin-top: 2rem;
  font-size: 2.5rem;
  word-spacing: 3px;
  line-height: 1.7;
}

/* ---------------------- SignIn OTP ------------------------- */

.signin-opt.form-signin-signup__container.active {
  justify-content: center;
}

.signin-signup__confirm-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 98%;
  margin-top: 1rem;
  margin-bottom: -1rem;
}

.signin-signup__confirm-number-text {
  font-size: 1.3rem;
  margin-bottom: 0;
}

.signin-signup__confirm-number-num {
  color: var(--color-accent);
  font-size: 1.6rem;
  border-bottom: 2px solid var(--color-accent);
}

.signin-signup__edit-number {
  color: #777;
  font-size: 1.2rem;
  transition: all 0.2s ease-in;
  margin-top: 0.5rem;
}

.signin-signup__edit-number:hover {
  color: var(--color-accent);
  transform: scale(1.1);
}

@media screen and (min-width: 768px) {
  .signin-signup__confirm-number {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 95%;
    margin-bottom: -1rem;
  }
}
