@use "./variables" as v;

/* =========================
   BACKGROUND
========================= */
.login-wrapper {
  min-height: 70vh;
  display: flex;
  background: linear-gradient(135deg, $user-bg, #ffffff);
}

/* =========================
   LEFT PANEL
========================= */
.login-left {
  flex: 1;
  background: radial-gradient(circle at top left, $user-bg, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;

  .brand-content {
    max-width: 420px;

    h1 {
      font-size: 2.5rem;
      color: $user-text;
      font-weight: 700;
    }

    p {
      color: $user-text-muted;
    }
  }

  .trust-signals {
    margin-top: 2rem;

    p {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
      color: $user-text;

      i {
        color: $user-primary;
      }
    }
  }
}

/* =========================
   RIGHT PANEL
========================= */
.login-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* =========================
   LOGIN CARD (CUSTOM BOOTSTRAP OVERRIDE)
========================= */
.login-card {
  width: 100%;
  max-width: 420px;

  background: $user-bg;
  border: 1px solid $user-border;
  border-radius: 14px;
  padding: 2rem;

  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.12);

  transition: transform 0.2s ease;

  &:hover {
    transform: translateY(-3px);
  }

  h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: v.$user-primary;
    letter-spacing: 0.3px;
  }

  #email {
    border: 1px solid v.$user-border;
    border-radius: 10px;
    padding: 0.8rem 0.9rem;
    background: $user-surface;
    transition: all 0.2s ease;

    &::placeholder {
      color: v.$user-text-muted;
      opacity: 0.7;
    }

    &:focus {
      border-color: v.$user-primary;
      box-shadow: 0 0 0 0.25rem rgba(14, 165, 233, 0.18);
    }
  }

  #password {
    border: 1px solid v.$user-border;
    border-radius: 10px;
    padding: 0.8rem 2.5rem 0.8rem 0.9rem; // extra right padding for eye icon
    background: $user-surface;
    transition: all 0.2s ease;

    &::placeholder {
      color: v.$user-text-muted;
      opacity: 0.7;
    }

    &:focus {
      border-color: v.$user-primary;
      box-shadow: 0 0 0 0.25rem rgba(14, 165, 233, 0.18);
    }
  }
}

/* =========================
   INPUTS
========================= */
.form-control {
  border: 1px solid $user-border;
  padding: 0.75rem 0.9rem;

  &:focus {
    border-color: $user-primary;
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.2);
  }
}

/* =========================
   BUTTON
========================= */
.btn-primary {
  background-color: $user-primary;
  border: none;
  font-weight: 600;

  transition: all 0.2s ease;

  &:hover {
    background-color: $user-primary-hover;
  }

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

/* =========================
   PASSWORD TOGGLE ICON
========================= */
.toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 40px;

  cursor: pointer;
  color: v.$user-text-muted;
  font-size: 1.1rem;
  user-select: none;

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

  height: 100%; // 🔥 ensures vertical centering consistency
}

#password {
  padding-right: 2.8rem;
}

/* =========================
   VALIDATION
========================= */
.invalid-feedback {
  color: $user-danger;
  font-size: 0.85rem;
}