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

.verification {
  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;
  }

  /* ======================================== */
  /* 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: 72px;

  padding: 0 2rem;

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

.logo {
  width: 140px;
  height: auto;
}

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

.content {
  flex: 1;

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

  padding: 3rem 1.5rem;
}

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

  display: flex;
  flex-direction: column;
}

/* ======================================== */
/* COPY */
/* ======================================== */

.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;
}

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

  font-size: 0.85rem;

  line-height: 1.7;

  margin-bottom: 0.5rem;
}

.copy strong {
  color: white;

  font-weight: 500;

  font-size: 0.8rem;
}

/* ======================================== */
/* ALERTS */
/* ======================================== */

.successAlert {
  margin-bottom: 1rem;

  padding: 0.9rem 1rem;

  border-radius: 12px;

  background: rgba(34, 197, 94, 0.12);

  border: 1px solid rgba(34, 197, 94, 0.2);

  color: #4ade80;

  font-size: 0.85rem;
}

.errorAlert {
  margin-bottom: 1rem;

  padding: 0.9rem 1rem;

  border-radius: 12px;

  background: rgba(239, 68, 68, 0.12);

  border: 1px solid rgba(239, 68, 68, 0.2);

  color: #f87171;

  font-size: 0.85rem;
}

/* ======================================== */
/* OTP */
/* ======================================== */

.codeInputs {
  display: flex;

  gap: 2rem;

  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.codeInputs input {
  width: 58px;
  height: 52px;

  border-radius: 16px;

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

  background: rgba(255, 255, 255, 0.04);

  color: white;

  text-align: center;

  font-size: 1.35rem;
  font-weight: 700;

  transition: all 0.25s ease;
}

.codeInputs input:hover {
  border-color: rgba(
    255,
    183,
    3,
    0.35
  );
}

.codeInputs input:focus {
  outline: none;

  border-color: #ffb703;

  background: rgba(
    255,
    255,
    255,
    0.06
  );

  box-shadow:
    0 0 0 4px rgba(
      255,
      183,
      3,
      0.08
    ),
    0 0 24px rgba(
      255,
      183,
      3,
      0.18
    );

  transform: translateY(-2px);
}

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

.verifyButton {
  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.25rem;

  text-align: center;

  font-size: 0.85rem;

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

.resend {
  background: transparent;

  border: none;

  cursor: pointer;

  margin-top: 0.4rem;

  color: #ffb703;

  font-size: 0.9rem;

  font-weight: 600;

  transition: opacity 0.2s ease;

  &:hover {
    opacity: 0.8;
  }
}

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

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

  .content {
    padding: 2rem 1.25rem;
  }

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

  .codeInputs {
    gap: 0.5rem;
  }

  .codeInputs input {
    width: 52px;
    height: 52px;

    font-size: 1.15rem;
  }
}

@media (max-width: 480px) {
  .codeInputs input {
    width: 46px;
    height: 46px;

    font-size: 1rem;

    border-radius: 12px;
  }
}