@use "../../styles/abstracts/variables" as *;
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700&display=swap');

/* ================= WRAPPER ================= */
.wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  flex-direction: column;

  font-family: "Figtree", sans-serif !important;

  background: radial-gradient(
      circle at top left,
      rgba(122, 75, 32, 0.08),
      transparent 40%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(94, 56, 23, 0.08),
      transparent 40%
    ),
    #faf8f6;
}

/* ================= CARD ================= */
.card {
  width: 100%;
  max-width: 440px;

  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);

  border-radius: 20px;
  padding: 34px 28px;

  border: 1px solid rgba(0, 0, 0, 0.05);

  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 8px 20px rgba(122, 75, 32, 0.06);

  display: flex;
  flex-direction: column;
  gap: 22px;

  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ================= HEADER ================= */
.header {
  text-align: center;

  h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
  }

  p {
    margin-top: 6px;
    font-size: 14px;
    color: #6b6b6b;
  }
}

/* ================= EMAIL BOX ================= */
.emailBox {
  display: flex;
  align-items: center;
  gap: 10px;

  background: linear-gradient(
    135deg,
    rgba(122, 75, 32, 0.08),
    rgba(94, 56, 23, 0.06)
  );

  padding: 12px;
  border-radius: 12px;

  font-size: 14px;
  color: #5e3817;

  border: 1px solid rgba(122, 75, 32, 0.15);

  svg {
    color: #7a4b20;
  }
}

/* ================= FORM ================= */
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ================= INPUT GROUP ================= */
.inputGroup {
  display: flex;
  flex-direction: column;
  gap: 6px;

  label {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    padding-top: 1rem;
  }
}

/* ================= INPUT WRAPPER ================= */
.inputWrapper {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 14px;
  border-radius: 12px;

  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;

  transition: all 0.25s ease;

  svg {
    color: #b0a79f;
    flex-shrink: 0;
  }

  input {
    flex: 1;
    border: none;
    outline: none;

    font-size: 14px;
    color: #1a1a1a;

    background: transparent;

    &::placeholder {
      color: #9ca3af;
    }
  }

  &:focus-within {
    border-color: rgba(122, 75, 32, 0.3);
    box-shadow: 0 0 0 3px rgba(122, 75, 32, 0.12);

    svg {
      color: #7a4b20;
    }
  }
}



/* ================= TOGGLE ================= */
.toggle {
  cursor: pointer;
  color: #9ca3af;

  display: flex;
  align-items: center;

  transition: 0.2s ease;

  &:hover {
    color: #7a4b20;
  }
}

/* ================= ERROR ================= */
.error {
  font-size: 12px;
  color: #dc2626;
}

/* ================= BUTTON ================= */
.button {
  margin-top: 10px;

  width: 100%;
  padding: 14px;

  border-radius: 12px;
  border: none;

  background: linear-gradient(135deg, #5e3817, #7a4b20);
  color: #ffffff;

  font-weight: 600;
  font-size: 14px;

  cursor: pointer;

  transition: all 0.25s ease;

  box-shadow: 0 10px 22px rgba(122, 75, 32, 0.18);

  &:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(122, 75, 32, 0.28);
  }

  &:active {
    transform: scale(0.97);
  }

  &:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
  }
}

/* ================= FOOTER ================= */
.footer {
  text-align: center;

  p {
    font-size: 12px;
    color: #6b6b6b;
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 480px) {
  .card {
    padding: 26px 20px;
  }

  .header h1 {
    font-size: 20px;
  }
}

.forgot {
  font-size: 0.75rem;
  font-weight: 500;

  color: $primary; /* 🔥 your brown */
  cursor: pointer;

  transition: all 0.2s ease;

  white-space: nowrap;

  &:hover {
    color: $primary-2;
    text-decoration: underline;
  }

  &:active {
    opacity: 0.7;
  }
}

.logo {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;

  img {
    height: 80px;
    object-fit: contain;
  }
}



/* ================= SELECT WRAPPER ================= */
.selectWrapper {
  position: relative;

  border-radius: 12px;

  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;

  transition: all 0.25s ease;

  &:focus-within {
    border-color: rgba(122, 75, 32, 0.3);
    box-shadow: 0 0 0 3px rgba(122, 75, 32, 0.12);
  }

  .select {
    border: none;
    background: transparent;
    width: 100%;
  }
}


/* ================= SELECT ================= */
.select {
  width: 100%;

  padding: 12px 14px;
  border-radius: 12px;

  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;

  font-size: 14px;
  color: #1a1a1a;

  outline: none;
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  transition: all 0.25s ease;

  /* 🔥 subtle custom arrow */
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7L10 12L15 7' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;

  padding-right: 36px;

  &:hover {
    border-color: rgba(122, 75, 32, 0.2);
  }

  &:focus {
    border-color: rgba(122, 75, 32, 0.3);
    box-shadow: 0 0 0 3px rgba(122, 75, 32, 0.12);
  }

  &:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
}


//Password Match 
.feedbackText {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 0.75rem;
  font-weight: 500;

  margin-top: 6px;
  padding: 4px 8px;

  border-radius: 999px;
  width: fit-content;

  transition: all 0.2s ease;
}

/* ✅ SUCCESS */
.successText {
  @extend .feedbackText;

  color: #166534;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.15);
}

/* ❌ ERROR */
.errorText {
  @extend .feedbackText;

  color: #991b1b;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
}