@use "../../../styles/abstracts/variables" as *;

@use "../../../styles/abstracts/variables" as *;

.auth {
  min-height: 100vh;

  background: linear-gradient(
    to bottom,
    #0b0d12,
    #05060a
  );

  color: #e5e7eb;

  font-family: $font-onest, "Instrument Sans", sans-serif;

  display: flex;
  flex-direction: column;

  position: relative;
  overflow: hidden;

  /* ======================================== */
  /* NOISE LAYER */
  /* ======================================== */

  &::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    opacity: 0.025;

    z-index: 0;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='white'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3Ccircle cx='45' cy='68' r='1'/%3E%3Ccircle cx='91' cy='27' r='1'/%3E%3Ccircle cx='136' cy='95' r='1'/%3E%3Ccircle cx='60' cy='150' r='1'/%3E%3Ccircle cx='168' cy='172' r='1'/%3E%3C/g%3E%3C/svg%3E");

    background-repeat: repeat;
  }

  /* ======================================== */
  /* SOFT GLOW */
  /* ======================================== */

  &::after {
    content: "";

    position: absolute;

    width: 900px;
    height: 900px;

    left: 50%;
    top: 45%;

    transform: translate(-50%, -50%);

    background: radial-gradient(
      circle,
      rgba(255, 183, 3, 0.04) 0%,
      rgba(255, 183, 3, 0.015) 35%,
      transparent 70%
    );

    pointer-events: none;

    z-index: 0;
  }
}

a{
  text-decoration: none;
}

.header,
.content {
  position: relative;
  z-index: 2;
}

/* ================================================= */
/* HEADER */
/* ================================================= */

.header {
  width: 100%;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(16px);

  background: rgba(5, 6, 10, 0.75);

  position: sticky;
  top: 0;

  z-index: 100;
}

.headerInner {
  max-width: 1280px;

  margin: 0 auto;

  height: 74px;

  padding: 0 2rem;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.headerInner img {
  width: 140px;
  height: auto;
}

.headerInner a {
  color: rgba(255, 255, 255, 0.7);

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

  transition: color 0.25s ease;

  &:hover {
    color: white;
  }
}

/* ================================================= */
/* MAIN CONTENT */
/* ================================================= */

.content {
  flex: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 2rem;
}

/* ================================================= */
/* FORM WRAPPER */
/* ================================================= */

.wrapper {
  width: 100%;
  max-width: 460px;

  display: flex;
  flex-direction: column;
}

/* ================================================= */
/* INTRO */
/* ================================================= */

.copy {
  margin-bottom: 2.5rem;
}

.copy span {
  display: inline-flex;

  margin-bottom: 1rem;

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

  letter-spacing: 0.12em;

  color: #ffb703;
}

.copy h1 {
  font-size: 1.4rem;
  line-height: 1.1;

  font-weight: 600;

  color: white;

  margin-bottom: 0.85rem;
}

.copy p {
  color: rgba(255, 255, 255, 0.65);

  font-size: 0.85rem;

  line-height: 1.7;

  margin: 0 auto;
}

/* ================================================= */
/* FORM */
/* ================================================= */

.form {
  display: flex;
  flex-direction: column;

  gap: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
}

 input {
    height: 3rem; /* taller */
    font-size: .88rem;
    border-radius: 14px;

    &::placeholder {
      font-size: 0.85rem; /* smaller placeholder */
      opacity: 0.6;
      color: #e5e7eb;
    }
  }

.field label {
  margin-bottom: 0.45rem;

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

  color: rgba(255, 255, 255, 0.8);
}


/* ================================================= */
/* BUTTON */
/* ================================================= */

.submitBtn {
  width: 100%;

  height: 3rem;

  border-radius: 14px;

  margin-top: 0.5rem;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;

  font-weight: 600;

  background: linear-gradient(
    135deg,
    #ffb703,
    #f59e0b
  );

  color: #000;

  box-shadow: 0 12px 35px rgba(255, 183, 3, 0.25);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;

  &:hover:not(:disabled) {
    transform: translateY(-1px);

    box-shadow: 0 18px 45px rgba(255, 183, 3, 0.35);
  }

  &:disabled {
    opacity: 0.7;

    cursor: not-allowed;
  }
}

/* ================================================= */
/* FOOTER */
/* ================================================= */

.footerText {
  margin-top: 1.5rem;

  text-align: center;

  font-size: 0.9rem;

  color: rgba(255, 255, 255, 0.6);
}

/* ================================================= */
/* MOBILE */
/* ================================================= */

@media (max-width: 768px) {
  .headerInner {
    padding: 0 1rem;
  }

  .content {
    padding: 2rem 1.25rem;
  }

  .copy h1 {
    font-size: 1.6rem;
  }

  .copy p {
    font-size: 0.9rem;
  }

  .wrapper {
    max-width: 100%;
  }
}


/* ================================================= */
/* RECAPTCHA */
/* ================================================= */

.recaptcha {
  display: flex;
  justify-content: center;

  margin: -0.25rem 0 0.75rem;
}

.recaptchaBox {
  display: flex;
  justify-content: center;
  align-items: center;

  padding: 0.75rem;

  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;

  backdrop-filter: blur(12px);

  iframe {
    transform: scale(0.92);
    transform-origin: center;
  }
}

@media (max-width: 480px) {
  .recaptchaBox iframe {
    transform: scale(0.86);
  }
}