@use 'variable/breakpoint' as *;

.login-container {
  max-height: 500px;
  min-height: calc(100vh - 76px);

  ::ng-deep {
    .layout-toolbar,
    .block-toolbar {
      display: none !important;
    }
  }
}

:host-context(.mat-mdc-dialog-container) {
  .login-container {
    max-height: none;
    min-height: auto;
  }
}

.login-wrapper {
  max-height: 600px;
  background-color: var(--mat-sys-surface-container-lowest);
  border: 1px solid var(--mat-sys-surface-bright);
  box-shadow: var(--mat-sys-level1);
  @apply max-w-full sm:w-[750px];
  app-loading {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
  }
  .error {
    background-color: var(--mat-sys-error-container);
    color: var(--mat-sys-on-error-container);
  }
  .login-form {
    .mat-mdc-raised-button {
      height: 40px;
    }
    .form-scroll {
      position: relative;
    }
    &.is-login {
      .form-scroll {
        top: 0;
      }
    }
  }

  @media #{$xs} {
    .login-form {
      width: 80vw;
    }
  }

  @media #{$gt-xs} {
    .login-form {
      padding: 40px;
    }

    border-radius: 20px;
    overflow: hidden;
  }
}

.login-second {
  min-width: 300px;
  background-color: var(--mat-sys-background);
  img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
  }
}

.mark-bg {
  width: 0;
  height: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  background-color: var(--mat-sys-background);
  z-index: 1;
}
