$blue: #007bff;
$blue-hover: #0056b3;
$modal-btn-bg: #0095ff;
$modal-link: #495057;

.hidden {
  display: none !important;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;

  &.hidden {
    opacity: 0;
    visibility: hidden;
  }
}

.modal-content {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  background-color: #fff;
  padding: 30px 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 400px;
  height: 500px;
  position: relative;
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;

  .modal-overlay.hidden & {
    transform: translateY(-20px);
  }

  .modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5em;
    color: #aaa;
    cursor: pointer;
    line-height: 1;

    &:hover {
      color: #333;
    }
  }

  .login-sh4re-icon {
    width: 100px;
    margin: 0 auto;
    margin-top: 30px;
  }

  .form-group {
    margin-bottom: 10px;

    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      margin: -1px;
      padding: 0;
      overflow: hidden;
      border: 0;
    }

    .text-box {
      width: 100%;
      height: 60px;
      padding: 16px;
      border: 1px solid #ccc;
      border-radius: 8px;
      box-sizing: border-box;
      font-size: 1em;

      &:focus {
        border-color: $blue;
        outline: none;
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
      }
    }
  }

  .login-submit-btn {
    margin-top: 30px;
    width: 100%;
    padding: 16px;
    background-color: $modal-btn-bg;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;

    &:hover {
      background-color: $blue-hover;
    }
  }

  .modal-options {
    margin-bottom: 30px;
    text-align: center;
    font-size: 0.9em;

    a {
      color: $modal-link;
      text-decoration: none;
      cursor: pointer;

      &:hover {
        text-decoration: underline;
      }
    }
  }
}
