/* login */
.login-home {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8;
  overflow: auto;
  background-image: url(assets/images/login-back.png);
  background-repeat: no-repeat;
  background-size: cover;

  min-width: 800px;
  min-height: 500px;
}

.login-footer {
  position: absolute;
  bottom: 26px;
  width: 100%;
  padding: 0 10px;
  color: var(--color-text-gray);
  text-align: center;

  a {
    margin: 0 5px;

    &:hover {
      color: var(--color-primary);
    }
  }
}

.login-box {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 500px;
  transform: translate(-50%, -50%);
  overflow: hidden;
  border-radius: 16px;
  background-color: #fff;
  backdrop-filter: blur(10px);
}
.login-theme {
  width: 400px;
  height: 100%;
  padding: 40px;
  border-radius: 16px 0 0 16px;
  background-image: url(assets/images/login-theme.png);
  background-size: 100% 100%;
  float: left;
  position: relative;
  color: #05174e;

  > h2 {
    height: 44px;
    line-height: 44px;
    font-weight: 900;
    font-size: 36px;

    span {
      font-size: 40px;
      color: #0077ff;
    }
  }

  > p {
    margin-top: 6px;
    height: 28px;
    line-height: 28px;
    font-size: 20px;
  }
}
.login-body {
  margin-left: 400px;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px 40px;

  > div {
    width: 100%;
  }
}
.login-title {
  margin-bottom: 24px;

  h1 {
    height: 32px;
    font-weight: bold;
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 4px;
  }
  p {
    height: 28px;
    font-weight: 400;
    font-size: 16px;
    color: var(--color-text-gray);
    line-height: 28px;
  }

  img {
    display: block;
    max-width: 160px;
    height: 40px;
    margin: 0 auto;
  }
}
.login-form {
  .submit-btn {
    border-radius: 6px;
    box-shadow: 0px 4px 10px #7fc3ff;
  }
}

// privilege-set
.privilege-set {
  overflow: auto;
  .table {
    td,
    th {
      padding: 8px 10px;
    }

    th:nth-of-type(4),
    td:nth-of-type(4) {
      text-align: center;
    }
  }
  .cell-check-list {
    text-align: left;
  }
}

// label-edit
.label-edit {
  min-height: 60px;
  .label-item {
    display: inline-block;
    vertical-align: top;
    border: 1px solid var(--color-text-gray-4);
    border-radius: 3px;
    padding: 4px 40px 5px 10px;
    position: relative;
    margin: 0 10px 10px 0;
    line-height: 20px;
  }
  .label-item-content {
    margin: 0;
    line-height: 20px;
    vertical-align: middle;
  }
  .label-item-delete {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    font-size: 16px;
    color: var(--color-text-gray-3);
    cursor: pointer;
    &:hover {
      color: var(--color-danger);
    }
  }
  .label-add {
    display: inline-block;
    vertical-align: top;
    border: 1px solid var(--color-text-gray-4);
    border-radius: 3px;
    padding: 0 10px;
    color: var(--color-text-gray);
    line-height: 31px;
    cursor: pointer;
    &:hover {
      border-color: var(--color-primary);
      color: var(--color-primary);
    }
  }
}
// field-transfer
.field-transfer {
  display: flex;
  align-items: stretch;
  .field-part-source {
    width: 200px;
    border-radius: 10px;
    border: 1px solid var(--color-border-bold);
    overflow: hidden;
  }
  .field-part-action {
    width: 120px;
    display: flex;
    justify-content: center;
    align-items: center;

    .action-body {
      width: 80px;
      height: 100px;
      line-height: 50px;
      text-align: center;
    }

    .arco-btn {
      margin: 0;
    }
  }
  .field-title {
    background-color: var(--color-background);
    padding: 10px 15px;
    line-height: 20px;
    border-bottom: 1px solid var(--color-border-bold);
  }
  .field-body {
    padding: 6px 15px;
    overflow-x: hidden;
    overflow-y: auto;
    height: 246px;
  }
  .field-item {
    position: relative;
    padding: 5px 0;
    line-height: 20px;

    &.after-drop {
      &::after {
        content: '';
        display: block;
        position: absolute;
        width: 100%;
        border-bottom: 2px solid var(--color-primary);
        bottom: -2px;
        left: 0;
        z-index: 9;
      }
    }
    &.before-drop {
      &::before {
        content: '';
        display: block;
        position: absolute;
        width: 100%;
        border-top: 2px solid var(--color-primary);
        top: -2px;
        left: 0;
        z-index: 9;
      }
    }
  }
}

.exam-edit {
  .form-section {
    margin-bottom: 16px;
    border: 1px solid var(--color-border-light);

    .section-head {
      height: 46px;
      padding: 11px 16px 10px;
      line-height: 24px;
      background: linear-gradient(180deg, #f9f9f9 0%, #f1f1f1 100%);
      border-bottom: 1px solid var(--color-border-light);

      &.is-flex {
        display: flex;
        align-items: center;
        gap: 12px;
      }

      > h3 {
        line-height: 24px;
        font-weight: 500;
        color: var(--color-text-dark);
        font-size: 16px;
      }
    }
    .section-body {
      padding: 20px 16px;
    }
  }

  .section-part {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-border-light);
    padding-bottom: 5px;

    &-title {
      height: 22px;
      line-height: 22px;
      color: var(--color-text-dark);
      position: relative;
      padding-left: 10px;
      margin-bottom: 20px;

      &::before {
        content: '';
        display: block;
        position: absolute;
        width: 2px;
        height: 16px;
        background-color: var(--color-primary);
        top: 50%;
        left: 0;
        transform: translateY(-50%);
      }
    }
  }

  .form-actions {
    text-align: center;
  }
}
