@use "../../../../../styles/abstracts/mixins"; 
@use "../../../../../styles/abstracts/variables";

.change__password {
  @include mixins.pageBase;

  form {
    @media only screen and (max-width: 1000px){ margin-top: 1.2rem; }
    label { @include mixins.formLabel; }
    input { @include mixins.formInput; }
    button {
      @include mixins.formButton;
      background: variables.$col-orange;
      color: variables.$col-dark;
    }
  }

  &--password {
    position: relative;
    span {
      color: #fff;
      position: absolute;
      right: 1.5rem;
      top: 1.2rem;
      font-weight: 600;
      font-size: .8rem;
      cursor: pointer;
      opacity: .8;
    }
  }

  /* ===== Logout Modal ===== */
  .logoutModalBackdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }

  .logoutModal {
    background: #0f0f0f;
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    border: 1px solid variables.$col-table-bg;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);

    h3 {
      font-size: 1.3rem;
      margin-bottom: 1rem;
      color: #f7931a;
    }

    p {
      font-size: 0.95rem;
      margin-bottom: 1.8rem;
      color: #cbd5e1;
    }

    .actions {
      display: flex;
      justify-content: space-around;
      gap: 1rem;

      button {
        padding: 0.6rem 1.2rem;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        border: none;
        transition: all 0.2s ease;

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

      .cancelBtn {
        background: #444;
        color: #fff;
      }

      .logoutBtn {
        background: variables.$col-orange;
        color: variables.$col-dark;
      }
    }
  }
}
