@use '@scssutils' as *;

#add-device-page {
  & > .page-content {
    box-sizing: border-box;
    padding: 100px 40px;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: flex-start;
    overflow: auto;

    h1 {
      color: var(--text-body-primary);
      user-select: none;

      @include typography(app-title);
    }

    h2 {
      color: var(--text-body-primary);
      padding-bottom: var(--spacing-s);
      user-select: none;

      @include typography(app-body-1);
    }

    & > .content-wrapper {
      width: 100%;
      max-width: 920px;
      display: flex;
      flex-flow: column;
      align-items: center;
      justify-content: flex-start;
      width: 100%;
      row-gap: 40px;

      & > * {
        width: 100%;
      }

      & > .card {
        box-sizing: border-box;
        padding: var(--spacing-l);

        .message-box-spacer {
          padding-bottom: 20px;
        }

        form {
          & > * {
            width: 100%;
          }
        }
      }

      & > header {
        display: flex;
        flex-flow: row wrap;
        align-items: center;
        justify-content: flex-start;
        user-select: none;

        & > .controls {
          margin-left: auto;
          display: flex;
          flex-flow: row nowrap;
          align-items: center;
          justify-content: flex-start;
          column-gap: 32px;

          & > .btn {
            min-width: 180px;

            &.nav-back {
              .arrow-single {
                svg {
                  g {
                    fill: var(--surface-icon-primary);
                  }
                }
              }
            }

            .arrow-single {
              svg {
                g {
                  fill: var(--surface-icon-secondary);
                }
              }
            }
          }
        }
      }
    }

    form {
      width: 100%;
      display: flex;
      flex-flow: column;
      align-items: center;
      justify-content: flex-start;

      & > * {
        &:not(.input, .select) {
          padding-bottom: 20px;
        }
      }
    }
  }
}
