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

.login {
    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 {
  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 {
  flex: 1;

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

  padding: 3rem 1.5rem;
}

.wrapper {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
}

.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.2rem;
  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 {
  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);
}

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

.forgot {
  font-size: 0.8rem;
  padding-bottom: .3rem;
}

.passwordWrap {
  position: relative;

  input {
    padding-right: 3rem;
  }
}

.toggle {
  position: absolute;

  right: 1rem;
  top: 50%;

  transform: translateY(-50%);

  cursor: pointer;

  opacity: 0.6;

  transition: 0.2s ease;

  &:hover {
    opacity: 1;
  }
}

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

.footerText {
  text-align: center;

  margin-top: 0.5rem;

  font-size: 0.9rem;

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

.status {
  margin-top: 1rem;

  text-align: center;

  color: #22c55e;

  font-size: 0.9rem;
}

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

  .content {
    padding: 2rem 1.25rem;
  }

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



/* ========================================
ADMIN BADGE
======================================== */

.adminBadge {
  display: inline-flex;

  align-items: center;

  gap: 0.55rem;

  padding: 0.55rem 0.95rem;

  margin-bottom: 1.25rem;

  border-radius: 999px;

  width: fit-content;

  background: rgba(255, 183, 3, 0.08);

  border: 1px solid rgba(255, 183, 3, 0.18);

  color: #ffb703;

  backdrop-filter: blur(12px);

  svg {
    width: 15px;
    height: 15px;
  }

  span {
    margin: 0 !important;

    color: inherit !important;

    font-size: 0.72rem !important;

    font-weight: 700 !important;

    letter-spacing: 0.12em;

    text-transform: uppercase;
  }
}

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

.copy {
  margin-bottom: 2.5rem;

  h1 {
    margin-top: 0;

    margin-bottom: 0.9rem;
  }

  p {
    max-width: 470px;
  }
}

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

.headerInner {
  a:last-child {
    font-size: 0.88rem;

    color: rgba(255, 255, 255, 0.72);

    transition: 0.25s ease;

    &:hover {
      color: #ffb703;
    }
  }
}

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

.footerText {
  margin-top: 0.75rem;

  font-size: 0.82rem;

  line-height: 1.7;

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

/* ========================================
STATUS
======================================== */

.status {
  margin-top: 1rem;

  text-align: center;

  padding: 0.9rem 1rem;

  border-radius: 12px;

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

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

  color: #22c55e;

  font-size: 0.85rem;
}

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

@media (max-width: 768px) {
  .adminBadge {
    margin-bottom: 1rem;

    span {
      font-size: 0.68rem !important;
    }
  }

  .copy {
    margin-bottom: 2rem;
    h1{
        font-size: 1.2rem;
        padding-top: 1rem;
    }
  }
}